v8/test/cctest/wasm
Andreas Haas d9b42b7b34 [wasm] Handle modules without code in streaming compilation
Streaming compilation started the compilation of a module at the
beginning of the code section. However, there exist valid modules which
do not contain a code section. In this CL we check for the existence of
a code section when we finish the stream. We do this by checking if the
module compiler in the AsyncCompileJob exists, because the module
compiler gets initialized at the beginning of the code section.

If we detect that compilation has not been started because there was no
code section, then we start compilation when the stream finishes.

R=clemensh@chromium.org

Bug: chromium:771973
Change-Id: I7c95a7a791d02254f086961e7cd81885eec27382
Reviewed-on: https://chromium-review.googlesource.com/778541
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49494}
2017-11-20 13:58:04 +00:00
..
OWNERS Add eholk to Wasm-related OWNERS files 2017-08-10 18:58:00 +00:00
test-c-wasm-entry.cc [wasm] Enable tests for Liftoff 2017-10-25 13:14:56 +00:00
test-run-wasm-64.cc [wasm] Int64 lowering for return values 2017-10-27 11:34:14 +00:00
test-run-wasm-asmjs.cc [wasm] Introduce the WasmContext 2017-09-28 16:14:03 +00:00
test-run-wasm-atomics.cc [wasm] Implement atomic BinOps in the interpreter 2017-11-06 03:57:23 +00:00
test-run-wasm-interpreter.cc [wasm] [cleanup] Rename tests 2017-11-02 14:34:13 +00:00
test-run-wasm-js.cc [jumbo] drop duplicate BUILD macro from test-run-wasm-js.cc 2017-09-22 11:15:08 +00:00
test-run-wasm-module.cc [wasm] Remove {memory_buffer} from WasmInstanceObject. 2017-10-25 11:57:56 +00:00
test-run-wasm-relocation.cc Annotate all sites that still mutate {Code} objects. 2017-11-06 16:35:46 +00:00
test-run-wasm-simd.cc [ia32][wasm] Add I16x8 Binop and CompareOp. 2017-11-16 02:40:35 +00:00
test-run-wasm.cc [wasm] Fix expected function to match interpreter's function 2017-11-08 20:48:33 +00:00
test-streaming-compilation.cc [wasm] Handle modules without code in streaming compilation 2017-11-20 13:58:04 +00:00
test-wasm-breakpoints.cc [bigint] Fix abstract equality with junk strings 2017-10-25 20:56:09 +00:00
test-wasm-codegen.cc Add capability to handle CSP 'wasm-eval' in V8 2017-11-09 00:40:42 +00:00
test-wasm-interpreter-entry.cc [wasm] Enable tests for Liftoff 2017-10-25 13:14:56 +00:00
test-wasm-stack.cc [wasm] Enable tests for Liftoff 2017-10-25 13:14:56 +00:00
test-wasm-trap-position.cc [jumbo] add test namespaces for cctest 2017-09-21 08:46:16 +00:00
wasm-run-utils.cc [Compiler] Remove isolate from CompilationInfo. 2017-11-15 15:40:55 +00:00
wasm-run-utils.h [wasm] [cleanup] Rename tests 2017-11-02 14:34:13 +00:00