• Clemens Backes's avatar
    [wasm] Fix error message for missing stack arguments · 68ab78e2
    Clemens Backes authored
    We currently could produce the error message 'not enough arguments on
    the stack for block, expected 0 more'. This CL fixes this by printing
    the available number of arguments and the needed number, and adds
    DCHECKs to catch similar miscomputations in the future.
    
    It also adds a new test that produced the broken error before, and
    includes the expected failure message in a few more tests for
    robustness.
    
    R=manoskouk@chromium.org
    
    Change-Id: Ia08863889ae36ae0a05d96d36e92295b7159a01e
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3194264Reviewed-by: 's avatarManos Koukoutos <manoskouk@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#77167}
    68ab78e2
Name
Last commit
Last update
..
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
control-transfer-unittest.cc Loading commit data...
decoder-unittest.cc Loading commit data...
function-body-decoder-unittest.cc Loading commit data...
leb-helper-unittest.cc Loading commit data...
liftoff-register-unittests.cc Loading commit data...
loop-assignment-analysis-unittest.cc Loading commit data...
memory-protection-unittest.cc Loading commit data...
module-decoder-memory64-unittest.cc Loading commit data...
module-decoder-unittest.cc Loading commit data...
simd-shuffle-unittest.cc Loading commit data...
streaming-decoder-unittest.cc Loading commit data...
subtyping-unittest.cc Loading commit data...
trap-handler-posix-unittest.cc Loading commit data...
trap-handler-simulator-unittest.cc Loading commit data...
trap-handler-win-unittest.cc Loading commit data...
trap-handler-x64-unittest.cc Loading commit data...
wasm-code-manager-unittest.cc Loading commit data...
wasm-compiler-unittest.cc Loading commit data...
wasm-gdbserver-unittest.cc Loading commit data...
wasm-macro-gen-unittest.cc Loading commit data...
wasm-module-builder-unittest.cc Loading commit data...
wasm-module-sourcemap-unittest.cc Loading commit data...