• 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
..
OWNERS Loading commit data...
flag-utils.h Loading commit data...
test-signatures.h Loading commit data...
wasm-interpreter.cc Loading commit data...
wasm-interpreter.h Loading commit data...
wasm-macro-gen.h Loading commit data...
wasm-module-runner.cc Loading commit data...
wasm-module-runner.h Loading commit data...