summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-07-08 16:16:15 -0700
committerGitHub <noreply@github.com>2022-07-08 16:16:15 -0700
commit44fa122bec913d66bc3ce1271bf4f63f6d5d31f2 (patch)
tree51afad3b7166a5acee0ee21a99818fd72a2657a2 /src/wasm2js.h
parent83f48ed96357cdde61d898ca05f201d38e6d4222 (diff)
downloadbinaryen-44fa122bec913d66bc3ce1271bf4f63f6d5d31f2.tar.gz
binaryen-44fa122bec913d66bc3ce1271bf4f63f6d5d31f2.tar.bz2
binaryen-44fa122bec913d66bc3ce1271bf4f63f6d5d31f2.zip
[Wasm GC] RefIs / RefEq / RefTest return a boolean (#4786)
This marks all reference operations that return 0/1 as doing so. This allows various bitwise operations to be optimized on them. This also marks StringEq as a boolean, though we can't test that fully yet as Strings support is wip (no interpreter or other stuff yet). As a driveby this moves emitsBoolean to its own file, and uses it in getMaxBits to avoid redundancy (the redundant code paths now have a WASM_UNREACHABLE).
Diffstat (limited to 'src/wasm2js.h')
0 files changed, 0 insertions, 0 deletions