binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

Optimizer and compiler/toolchain library for WebAssembly

Results 496 binaryen issues
Sort by recently updated
recently updated
newest added

V8 very reasonably fails to instantiate this module: ``` (module (table $0 1 funcref) (elem $0 (offset (i32.sub (i32.const 0) (i32.const 1)))) ) ``` But our interpreter does not perform...

https://github.com/WebAssembly/binaryen/pull/6415 solves most of the problem (see details there), but an exception is this: ```wat (string.new_wtf16_array (ref.as_non_null (block (result (ref null $array)) (ref.as_non_null (ref.null none) ) ) ) (i32.const 0)...

E.g. loading `4` bytes from `2^32 - 2` should error: `2` bytes are past the maximum address. Before this PR we added `2^32 - 2 + 4` and overflowed to...

I've been working on a tool that parses DWARF debug info embedded in WebAssembly binaries. The files I'm examining are optimized for size using `wasm-opt -Oz -g`. I've run into...

There are times after collecting a profile, we wish to manually include specific functions into the primary module. It could be due to non-deterministic profiling or functions for error scenarios...

Previously `br_if` with a value had the same type as the value, but the spec says it should be the type of the block it targets, which might be less...

I'm unsure what exactly triggers this issue, but I tried several versions: v112, v116, v117, they all fail with the same message: ``` compile unit size was incorrect (this may...

This just bisects on the binary in order to find where the behavior changes. This is useful on our fuzzer as the input is additive, so just by shrinking it...

Allows us to generate / print out a callgraph for a specific entry point which we'd like to focus on. Sample usage: `wasm-opt foobar.wasm --print-call-graph -pa=callgraph-entry@foo > foo.dot`

This issue is about porting wasm-opt itself to wasm, and how fast it runs there. The main blocker here was that it was 10x slower than a native build: https://github.com/emscripten-core/emscripten/issues/15727...