binaryen
binaryen copied to clipboard
Optimizer and compiler/toolchain library for WebAssembly
I notices a strange failure on HEAD with a test that I guess we don't run anywhere: `./test/runner core2ss.test_pthread_dylink_tls` . The problem is with `-sSTACK_OVERFLOW_CHECK` which runs that StackCheck check...
The spec allows all branches to carry an arbitrary number of values to their destination labels (as long as the destination label has a result type that expects those values)....
Hi, It seems binaryen (7d5d24f) creates invalid blocks after function body inlining. Steps to reproduce: 1. Download wasm file from [here](https://drive.google.com/file/d/1Tsu2TTeVTSMmsXJwjVZs5LGkYEj3RjSl/view?usp=share_link) and unpack index.wasm file 2. Run wasm-opt --enable-gc --enable-reference-types...
Update LogExecution pass to emit log ordinals in the wasm function ordinals order, so that they can be correlated with functions afterwards. This is something I found I needed to...
Oddly I can't create a PR directly to your fork @gkdn - maybe something needs to be set up for that? I can see other forks in the UI to...
Trying to run `wasm2js` on `HavokPhysics.wasm` in https://github.com/BabylonJS/Babylon.js/tree/master/packages/tools/babylonServer/public/havok Getting the error: ```bash ./wasm2js ../../../Babylon.js/packages/tools/babylonServer/public/havok/HavokPhysics.wasm -o ../../../Babylon.js/packages/tools/babylonServer/public/havok/HavokPhysics.js unhandled unaligned store UNREACHABLE executed at /src/src/passes/AlignmentLowering.cpp:334! Aborted ``` Using version: https://github.com/WebAssembly/binaryen/releases/tag/version_112 Linux: `binaryen-version_112-x86_64-linux.tar.gz`
```wat (module (func $test (param $ref (ref struct)) (local $local (ref struct)) (drop (block (result i32) (local.set $local (unreachable) ;; this causes validation of the later local.get to fail ;;...
This change allows optimizeAddedConstants to work on vector additions and subtractions. There were no other changes. I don't know how what I did worked, or why it worked without additional...
Recently, a bunch of strange issues have appeared in conjunction with Binaryen.js builds, yielding runtime errors like * `RuntimeError: null function or function signature mismatch` and * `TypeError: c(...) is...
The `i64x2.add` in the following WAT isn't being optimized at all (`build/bin/wasm-opt --enable-simd -O3 -S -o - test.wat`): ```wat (module (export "v128-add" (func $v128-add)) (export "i64-add" (func $i64-add)) (func $v128-add...