v8/test
Thibaud Michaud c2d46fe966 [wasm] Keep call_indirect index on the stack
When a call_indirect fails because of a signature mismatch or a null
target, the value stack generated for debug doesn't contain the target
index anymore, which makes it hard for users to understand the error.

Keep the index on the stack, and ensure that the index is not modified
until we generate the debug info. Previously, the index was shifted
in-place to compute various offsets. Instead, use scaled loads to
compute the offset directly in the load instruction.

R=clemensb@chromium.org

Bug: chromium:1350384
Change-Id: Iad5359ec80deef25a69ac119119a0b5ca559a336
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3854309
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82780}
2022-08-29 14:04:58 +00:00
..
benchmarks Skip unpredictable tests on predictable builders 2022-08-25 11:29:55 +00:00
bigint [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
cctest [wasm] Keep call_indirect index on the stack 2022-08-29 14:04:58 +00:00
common [wasm] Use v8_flags for accessing flag values 2022-08-29 12:43:46 +00:00
debugger [cleanup] Remove --stress-opt 2022-08-25 12:26:24 +00:00
debugging [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
fuzzer [wasm] Use v8_flags for accessing flag values 2022-08-29 12:43:46 +00:00
fuzzilli [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
inspector [wasm-gc] Debugger: Provide type info for structs and arrays in tables 2022-08-26 14:51:20 +00:00
intl [intl] Remove incorrect optimization for 0 length string 2022-08-22 18:44:18 +00:00
js-perf-test [turbofan] More benchmarks for BigInt operations 2022-08-17 08:56:08 +00:00
memory
message [cleanup] Remove --stress-opt 2022-08-25 12:26:24 +00:00
mjsunit [maglev] Fix test flake due to racing the compiler thread 2022-08-29 13:58:48 +00:00
mkgrokdump [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
mozilla [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
test262 [test262] Roll test262 2022-08-27 05:23:07 +00:00
torque
unittests [wasm] Use v8_flags for accessing flag values 2022-08-29 12:43:46 +00:00
wasm-api-tests [wasm-gc] Split any and extern type 2022-07-28 13:09:55 +00:00
wasm-js [wasm] Update spec tests 2022-08-11 11:16:17 +00:00
wasm-spec-tests Skip all wasm-spec-tests in stress mode 2022-08-24 16:53:42 +00:00
webkit Skip fast/js/deep-recursion-test on NumFuzz until bug is fixed 2022-08-16 09:31:07 +00:00
BUILD.gn
OWNERS