v8/test/cctest/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
..
OWNERS [wasm] Update OWNERS 2020-01-08 14:56:06 +00:00
test-c-wasm-entry.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-compilation-cache.cc Reland "Reland "[wasm] Cache streaming compilation result"" 2020-02-03 13:49:18 +00:00
test-gc.cc [test] Print diagnostic message on failure in test-gc.cc 2020-09-16 07:55:28 +00:00
test-grow-memory.cc [wasm][fuzzer] Merge redundant functions 2020-08-11 12:30:53 +00:00
test-jump-table-assembler.cc [wasm][mac] Support w^x codespaces for Apple Silicon 2020-09-09 20:57:52 +00:00
test-liftoff-inspection.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-64.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-asmjs.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-atomics64.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-atomics.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-bulk-memory.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-exceptions.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-interpreter.cc [wasm] Fix interpreter Ref in unreachable code 2020-09-16 09:34:29 +00:00
test-run-wasm-js.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-module.cc [wasm][fuzzer] Merge redundant functions 2020-08-11 12:30:53 +00:00
test-run-wasm-sign-extension.cc [wasm] Remove Sign Extension flag, and helper functions 2019-12-06 13:14:44 +00:00
test-run-wasm-simd-liftoff.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-simd-scalar-lowering.cc [wasm-simd][scalar-lowering] Fix all_true lowering 2020-09-14 18:27:56 +00:00
test-run-wasm-simd.cc [wasm-simd] Implement floating-point roundings 2020-09-15 18:03:02 +00:00
test-run-wasm.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-streaming-compilation.cc [Jobs API]: Implement missing Jobs pieces in the various v8 implementations. 2020-08-25 13:38:03 +00:00
test-wasm-breakpoints.cc [wasm][debug] Fix DebugInfo deadlock 2020-09-14 16:54:06 +00:00
test-wasm-codegen.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-wasm-debug-evaluate.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Faster wasm-to-js calls with arguments mismatch 2020-07-28 15:53:21 +00:00
test-wasm-serialization.cc [wasm] Fix tier down after deserialization 2020-08-18 15:15:53 +00:00
test-wasm-shared-engine.cc [wasm] Allow specifying larger code space limits 2020-08-28 16:25:36 +00:00
test-wasm-stack.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
test-wasm-trap-position.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
wasm-atomics-utils.h [wasm][cleanup] Using 'using' instead of 'typedef' 2019-03-29 10:20:30 +00:00
wasm-run-utils.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
wasm-run-utils.h [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00