v8/test/cctest/wasm
ahaas 3de5204737 [wasm] Indirect calls without function table cause validation errors.
The spec defines that indirect calls in WebAssembly code should cause a
validation error if no function table exists.

The CL contains the following changes:
1) Throw a validation error for indirect calls if the function table
   not exist.
2) Do not create TF nodes to throw a runtime error for indirect calls
   if the function table does not exist.
3) Fix existing unit tests by creating a dummy function table.
4) Add new a new test which tests that indirect calls without function
   table cause a validation error.

R=rossberg@chromium.org
CC=titzer@chromium.org

TEST=unittests/AstDecoderTest.IndirectCallsWithoutTableCrash

Review-Url: https://codereview.chromium.org/2484623002
Cr-Commit-Position: refs/heads/master@{#40802}
2016-11-07 12:37:27 +00:00
..
OWNERS Adding a few more owners to the wasm directory. 2016-06-29 17:38:30 +00:00
test-managed.cc [wasm] Add a Managed<T> wrapper class for allocating C++ classes that are deleted when the wrapper is garbage collected. 2016-10-17 09:28:40 +00:00
test-run-wasm-64.cc [wasm] Binary 0xD: update encoding of opcodes, types, and add immediates. 2016-10-26 16:56:49 +00:00
test-run-wasm-asmjs.cc [wasm] Move test-signatures.h from test/cctest to test/common 2016-10-05 12:00:03 +00:00
test-run-wasm-interpreter.cc [wasm] Track in the interpreter if a NaN could have been produced. 2016-10-20 14:27:45 +00:00
test-run-wasm-js.cc [wasm] Move test-signatures.h from test/cctest to test/common 2016-10-05 12:00:03 +00:00
test-run-wasm-module.cc [wasm] Do not run the infinite loop test if FLAG_dump_wasm_module is true 2016-10-31 17:56:37 +00:00
test-run-wasm-relocation.cc [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
test-run-wasm-simd-lowering.cc [wasm] simd scalar lowering F32x4Add and I32x4Add 2016-10-20 00:20:07 +00:00
test-run-wasm-simd.cc [wasm] fix Simd ExtractLane to take immediate instead of param 2016-09-08 17:16:03 +00:00
test-run-wasm.cc [wasm] Indirect calls without function table cause validation errors. 2016-11-07 12:37:27 +00:00
test-wasm-stack.cc [wasm] Move test-signatures.h from test/cctest to test/common 2016-10-05 12:00:03 +00:00
test-wasm-trap-position.cc [wasm] Move test-signatures.h from test/cctest to test/common 2016-10-05 12:00:03 +00:00
wasm-run-utils.h [turbofan] Support variable size argument removal in TF-generated functions 2016-11-02 13:15:57 +00:00