v8/test/unittests/wasm
Andreas Haas fe53fbfca0 [wasm] Delay error messages for lazy compilation
With streaming compilation we delay the generation of errors until after
all bytes are received, so that potentially better error messages get
generated. With this CL we also delay the generation of errors in the
combination of lazy compilation and streaming compilation.

In particular, this CL does the following:
* It avoids the creation of a `DecodeFail` task in
`FinishAsyncCompileJobWithError`, which would create an error immediately before a potential name section arrived.
* It calls `CompilationStateImpl::SetError()` so that an error is
created once the stream finishes.
* It removes the return value of `ProcessFunctionBody` so that wire
bytes continue to be received even after a validation error.
* It adds an early exit to `ProcessFunctionBody` if
`CompilationStateImpl::failed()` is true, so that we don't continue
validation after the first detected error.

R=clemensb@chromium.org

Bug: v8:12852
Change-Id: Ie8c6be243a257ef62cbb29fea6b8e0c205060680
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3802691
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82181}
2022-08-03 15:43:04 +00:00
..
control-transfer-unittest.cc [wasm][interpreter][eh] Implement catch with immediate 2021-02-11 15:38:56 +00:00
decoder-unittest.cc Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
function-body-decoder-unittest.cc [wasm-gc] Remove br_on_func & br_on_non_func op 2022-08-02 07:41:23 +00:00
leb-helper-unittest.cc Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
liftoff-register-unittests.cc Revert "[riscv32] Add RISCV32 backend" 2022-08-03 11:20:54 +00:00
loop-assignment-analysis-unittest.cc [wasm-gc] Remove 'let' opcode 2022-07-01 14:35:09 +00:00
memory-protection-unittest.cc Reland "[pku][wasm] Refactor PKU usage in Wasm" 2022-07-27 10:01:49 +00:00
module-decoder-memory64-unittest.cc [isolate][cleanup] Remove pointer to WasmEngine 2021-06-21 09:09:25 +00:00
module-decoder-unittest.cc [test][wasm] Increase coverage for value types in signature 2022-08-02 12:59:07 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
simd-shuffle-unittest.cc [wasm-simd][liftoff][x64] Optimize shuffles (swizzles) 2020-08-04 17:03:05 +00:00
streaming-decoder-unittest.cc [wasm] Delay error messages for lazy compilation 2022-08-03 15:43:04 +00:00
string-builder-unittest.cc [wasm] Fix/improve StringBuilder buffer growth 2022-07-19 13:02:36 +00:00
subtyping-unittest.cc [wasm-gc] All type shorthands should be nullable 2022-07-28 17:11:45 +00:00
trap-handler-posix-unittest.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
trap-handler-simulator-unittest.cc [traphandler] Fix simulator test for Mac 2021-09-22 08:58:22 +00:00
trap-handler-win-unittest.cc [test] Add a unittest platform setup mixin 2022-04-06 13:07:43 +00:00
trap-handler-x64-unittest.cc [wasm] Do not allocate guard regions for memory64 2022-07-28 14:41:45 +00:00
wasm-code-manager-unittest.cc [wasm][test] Various test cleanups 2021-02-01 07:57:35 +00:00
wasm-compiler-unittest.cc [wasm-gc] Split any and extern type 2022-07-28 13:09:55 +00:00
wasm-gdbserver-unittest.cc [wasm] [debugging] Fix --wasm-gdb-remote 2020-12-08 19:37:25 +00:00
wasm-macro-gen-unittest.cc [wasm][test] Cleanup macros 2021-09-24 16:47:54 +00:00
wasm-module-builder-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
wasm-module-sourcemap-unittest.cc Add source map support of WasmModule 2019-08-26 15:19:02 +00:00