v8/test/cctest/wasm
Thibaud Michaud b5e9eab6d0 [wasm] Fix module prefix hash for streaming decoder
The module's "prefix hash" is based on a prefix of the module bytes that
starts at the beginning of the module and stops at the code section.

In the case of the streaming decoder, if the code section is empty,
`AsyncStreamingProcessor::ProcessCodeSectionHeader()` is never called,
and we keep accumulating bytes in the hash after the code section. Fix
this by always calling into the streaming processor even if the code
section is empty.

R=ahaas@chromium.org
CC=clemensb@chromium.org

Bug: chromium:1334651
Change-Id: Id2a03468b355867868e589523c994c268c7b4eaf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3695564
Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81060}
2022-06-10 09:52:18 +00:00
..
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
test-backing-store.cc [wasm] Move test-backing-store.cc to wasm directory 2021-03-03 13:07:01 +00:00
test-c-wasm-entry.cc [ext-code-space] Migrate WasmExportedFunctionData code field to CodeT 2021-06-18 14:10:43 +00:00
test-compilation-cache.cc [wasm] Clean up SetCompiledModuleBytes 2022-05-17 14:27:13 +00:00
test-gc.cc [wasm] Fix effect chain, enable its verification 2022-05-31 12:37:27 +00:00
test-grow-memory.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-jump-table-assembler.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-liftoff-for-fuzzing.cc Reland "[wasm] Add tests for NaN detection in Liftoff" 2021-09-14 08:41:58 +00:00
test-liftoff-inspection.cc [liftoff] Move more options into LiftoffOptions 2022-04-19 16:21:21 +00:00
test-run-wasm-64.cc Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
test-run-wasm-asmjs.cc [test][cleanup] Rename WASM_*_LOCAL to WASM_LOCAL_* 2020-12-17 21:19:14 +00:00
test-run-wasm-atomics64.cc [maglev] Generic binary operations 2022-03-14 14:39:06 +00:00
test-run-wasm-atomics.cc [maglev] Generic binary operations 2022-03-14 14:39:06 +00:00
test-run-wasm-bulk-memory.cc [wasm] Small refactoring for module types 2022-01-27 14:52:20 +00:00
test-run-wasm-exceptions.cc [wasm] Remove --experimental-wasm-reftypes flag 2021-12-13 14:29:15 +00:00
test-run-wasm-interpreter.cc [wasm-gc] Merge anyref and externref 2022-03-01 22:12:59 +00:00
test-run-wasm-js.cc [cleanup] Fix -Wshadow warnings in cctest/wasm 2021-09-24 22:39:54 +00:00
test-run-wasm-memory64.cc [wasm] Disable trap handling for memory64 2021-07-08 11:03:08 +00:00
test-run-wasm-module.cc [wasm] Remove kFinishedTopTierCompilation event 2022-06-03 07:49:39 +00:00
test-run-wasm-relaxed-simd.cc [wasm-simd] Prototype relaxed integer Dot product instructions 2022-06-02 18:30:58 +00:00
test-run-wasm-sign-extension.cc [test][cleanup] Rename WASM_*_LOCAL to WASM_LOCAL_* 2020-12-17 21:19:14 +00:00
test-run-wasm-simd-liftoff.cc [wasm] Do not enforce LE for globals and WasmValue 2021-06-10 18:08:38 +00:00
test-run-wasm-simd.cc [x64][wasm-simd] Pattern match on packed byte to dword zero extend like shuffle 2022-06-06 03:15:12 +00:00
test-run-wasm-wrappers.cc [ext-code-space] Avoid Code <-> CodeT conversions in runtime, pt.4 2021-12-14 18:42:55 +00:00
test-run-wasm.cc [wasm][turbofan] Annotate nodes with wasm types 2022-05-27 11:25:53 +00:00
test-streaming-compilation.cc [wasm] Fix module prefix hash for streaming decoder 2022-06-10 09:52:18 +00:00
test-wasm-breakpoints.cc [debugger] Explicitly encode debugger statements in didPause 2021-12-02 10:41:43 +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-import-wrapper-cache.cc [wasm] Add suspend wrapper stub 2022-01-14 16:45:42 +00:00
test-wasm-metrics.cc [wasm] Remove sampling on top tier finished 2022-05-31 16:20:58 +00:00
test-wasm-serialization.cc [wasm] Enable dynamic tiering in serialization tests 2022-05-31 11:11:17 +00:00
test-wasm-shared-engine.cc [isolate][cleanup] Remove pointer to WasmEngine 2021-06-21 09:09:25 +00:00
test-wasm-stack.cc [debug] Add new 'CreateMessageFromException' function 2022-01-12 12:49:53 +00:00
test-wasm-strings.cc [stringrefs] Add generalized UTF-8 decoder / validator 2022-05-20 08:05:04 +00:00
test-wasm-trap-position.cc [inspector] Capture stack trace only once for JSError objects. 2022-01-10 14:55:18 +00:00
wasm-atomics-utils.h [maglev] Generic binary operations 2022-03-14 14:39:06 +00:00
wasm-run-utils.cc [flags] Protect individual flag updates 2022-06-03 10:24:40 +00:00
wasm-run-utils.h [wasm][turbofan] Annotate nodes with wasm types 2022-05-27 11:25:53 +00:00
wasm-simd-utils.cc Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
wasm-simd-utils.h [wasm-relaxed-simd][x64] Prototype relaxed min and max 2021-10-21 00:58:24 +00:00