v8/test/common/wasm
Thibaud Michaud 140271f269 [wasm] Fix interpreter Ref in unreachable code
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: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69934}
2020-09-16 09:34:29 +00:00
..
flag-utils.h [wasm] Refactor WasmFeatures 2019-11-26 17:36:11 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
test-signatures.h [wasm-simd][scalar-lowering] Fix more lowering of returns 2020-09-11 01:48:16 +00:00
wasm-interpreter.cc [wasm] Fix interpreter Ref in unreachable code 2020-09-16 09:34:29 +00:00
wasm-interpreter.h [wasm][fuzzer] Check result of compiled code vs interpreter 2020-08-10 14:59:46 +00:00
wasm-macro-gen.h [wasm-gc] Implement call_ref, return_call_ref, add some basic tests 2020-08-14 17:58:27 +00:00
wasm-module-runner.cc [wasm][fuzzer] Support functions returning i64 2020-09-15 17:23:22 +00:00
wasm-module-runner.h [wasm][fuzzer] Fix BigInt parameters 2020-08-26 14:22:19 +00:00