• Thibaud Michaud's avatar
    [wasm] Fix interpreter Ref in unreachable code · 140271f2
    Thibaud Michaud authored
    For "else" and "catch" statements, the Ref to the end label should only
    be added if the current block is unreachable, not the parent block.
    
    In the added regression test, the "true" block ends in an unreachable
    state with a stack height less than the target height of the end label.
    This is valid due to the semantics of unreachable code, but we should
    not add the Ref in this case because its stack height is invalid.
    
    R=clemensb@chromium.org
    
    Fixed: chromium:1092130
    Change-Id: Iebaf5e7d6516278ccd3c8268ac331069e109d882
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2412181
    Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#69934}
    140271f2
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...