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

Previously when we parsed `string.const` payloads in the text format we were using the text strings directly instead of un-escaping them. Fix that parsing, and while we're editing the code,...

Similar to ref.cast slightly, but simpler. Also update some TODO text as I go through them.

The GC spec has been updated to have heap type annotations on call_ref and return_call_ref. To avoid breaking users, we will have a graceful, multi-step upgrade to the annotated version...

Handles https://github.com/WebAssembly/binaryen/issues/5008#issuecomment-1235824896

- Add tracking local values - Handle all bitwise operations

In this PR `standardizeNaN` changes input type from raw value to literal which reduce usage verbosity

It's similar to #4985 but for NaNs on LHS ```rust nan - x => nan' nan / x => nan' ``` where `nan'` is canonicalized `nan` of lhs Also add...

```rust copysign(x, +C) -> abs(x); copysign(x, -C) -> neg(abs(x)); copysign(x, x) -> x ```

Building binaryen.js gives warnings like the following: ``` building:WARNING: /tmp/emscripten_temp_vx7q3baw/binaryen_js.js.pp.js.jso.js.jso.js.jso.js.jso.js:9381:1: WARNING - [JSC_USED_GLOBAL_THIS] dangerous use of the global this object 9381| this["ptr"] = relooper; ^^^^ /tmp/emscripten_temp_vx7q3baw/binaryen_js.js.pp.js.jso.js.jso.js.jso.js.jso.js:9382:1: WARNING - [JSC_USED_GLOBAL_THIS] dangerous...