v8/test/cctest/wasm
Ben Smith e79760c9d3 [wasm] Fail validation with non-zero functions, but no code section
Make sure to check that the number of declared functions (specified in the
function section) matches the number of function bodies, even if the code
section is omitted.

Note that it is valid to have a function section with zero declared functions
and an omitted code section, and vice versa.

Bug: v8:8514
Change-Id: I4effa5abe2ed6d71146a665d2df6a2f48b5a84be
Reviewed-on: https://chromium-review.googlesource.com/c/1351306
Commit-Queue: Ben Smith <binji@chromium.org>
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57949}
2018-11-29 17:50:05 +00:00
..
OWNERS Reduce wasm OWNERS to current team members 2018-10-15 14:47:49 +00:00
test-c-wasm-entry.cc [wasm][interpreter] Store code entry as raw pointer 2018-09-14 10:52:33 +00:00
test-jump-table-assembler.cc Make cctest/test-jump-table-assembler/JumpTablePatchingStress reliable on Arm64. 2018-11-28 10:43:31 +00:00
test-run-wasm-64.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-asmjs.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-atomics64.cc [compiler] Fix use of projection nodes for I64Atomic ops 2018-09-18 16:42:10 +00:00
test-run-wasm-atomics.cc [compiler] Remove AtomicNarrow machine operators, macroize tests 2018-08-29 16:11:48 +00:00
test-run-wasm-interpreter.cc [wasm] Rename GrowMemory to MemoryGrow 2018-10-29 14:06:24 +00:00
test-run-wasm-js.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-module.cc [wasm] Rename GrowMemory to MemoryGrow 2018-10-29 14:06:24 +00:00
test-run-wasm-sign-extension.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-simd.cc [wasm] Update SIMD opcodes to match toolchain/spec 2018-11-15 06:28:55 +00:00
test-run-wasm.cc [wasm] Avoid redundant code copy for import wrappers. 2018-11-14 16:10:19 +00:00
test-streaming-compilation.cc [wasm] Fail validation with non-zero functions, but no code section 2018-11-29 17:50:05 +00:00
test-wasm-breakpoints.cc [cleanup] Mark wasm methods in subclasses with override. 2018-09-17 09:38:05 +00:00
test-wasm-codegen.cc [api] Properly define BufferReference instead of CallerOwnedBuffer 2018-06-21 13:17:18 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Do not store ModuleEnv 2018-10-23 12:47:14 +00:00
test-wasm-interpreter-entry.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-wasm-serialization.cc [wasm] Add WasmFeatures to enable/detect features 2018-08-09 10:58:22 +00:00
test-wasm-shared-engine.cc Reland "[ubsan] Replace Object** in GlobalHandles" 2018-10-31 23:56:23 +00:00
test-wasm-stack.cc [cleanup] Refactor base, compiler, and wasm classes to use bools instead of converting ints. 2018-09-20 09:14:25 +00:00
test-wasm-trap-position.cc [cleanup] Refactor base, compiler, and wasm classes to use bools instead of converting ints. 2018-09-20 09:14:25 +00:00
wasm-atomics-utils.h [compiler] Remove AtomicNarrow machine operators, macroize tests 2018-08-29 16:11:48 +00:00
wasm-run-utils.cc [wasm] Decouple wire bytes from compilation units 2018-11-07 13:56:53 +00:00
wasm-run-utils.h [wasm] Remove test-only {RelocInfo::JS_TO_WASM_CALL}. 2018-11-05 13:49:18 +00:00