summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-01-09 15:15:43 -0800
committerGitHub <noreply@github.com>2023-01-09 15:15:43 -0800
commita803a0830586aaa3e9c989403881298b430f312c (patch)
treeb2208d66d1abc2e875b990f4a1816a69ba7cc3a0 /src/wasm2js.h
parent67abc2a1b9adcdf080387a29e0c92b6f5a31057a (diff)
downloadbinaryen-a803a0830586aaa3e9c989403881298b430f312c.tar.gz
binaryen-a803a0830586aaa3e9c989403881298b430f312c.tar.bz2
binaryen-a803a0830586aaa3e9c989403881298b430f312c.zip
[Wasm GC] More minor cast optimizations (#5402)
Look for definitely-failing casts along all the fallthrough values. Specifically, if any cast in the middle proves the final cast will fail, then we know we will trap. Fully optimize redundant casts, considering both the type and the heap type. Combine a cast with a ref.as_non_null.
Diffstat (limited to 'src/wasm2js.h')
0 files changed, 0 insertions, 0 deletions