v8/test/cctest/wasm
Andreas Haas 8a95da2415 [wasm] Reimplement WebAssembly.instantiate without desugaring
At the moment, WebAssembly.instantiate(bytes) is implemented by
desugaring it to WebAssembly.compile(bytes).then(WebAssembly.instantiate).
The problem is that the {then} in this snippet is observable. With this
CL I introduce a CompilationResultResolver which allows to do the
desugaring internally and thereby make the {then} unobservable.
Unfortunately the result of WebAssembly.instantiate(bytes) is different
than the result of WebAssembly.instantiate(module). Therefore I also
introduced an InstantiationResultResolver for symmetry with
WebAssembly.compile.

R=mstarzinger@chromium.org
Bug: chromium:837417

Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: I2d98e03d65f2ada19041d5a9e2df5da91b24ccca
Reviewed-on: https://chromium-review.googlesource.com/1059783
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53347}
2018-05-24 22:15:52 +00:00
..
OWNERS Remove mtrofin and rossberg from OWNERS 2018-02-15 23:48:43 +00:00
test-c-wasm-entry.cc [wasm] Make {NativeModule} independent of instance. 2018-04-27 14:22:35 +00:00
test-run-wasm-64.cc [wasm][cctest] Make remaining tests use page-sized memories 2018-04-27 22:37:14 +00:00
test-run-wasm-asmjs.cc [wasm] Split off wasm-linkage.h 2018-04-27 13:43:49 +00:00
test-run-wasm-atomics64.cc [wasm] Fix SIMD/Atomics tests to use page-sized memory 2018-04-27 20:39:48 +00:00
test-run-wasm-atomics.cc [wasm] Fix SIMD/Atomics tests to use page-sized memory 2018-04-27 20:39:48 +00:00
test-run-wasm-interpreter.cc [wasm] Split off wasm-linkage.h 2018-04-27 13:43:49 +00:00
test-run-wasm-js.cc [wasm] Split off wasm-linkage.h 2018-04-27 13:43:49 +00:00
test-run-wasm-module.cc [wasm] Move {shared} field to {WasmModuleObject}. 2018-05-14 15:55:45 +00:00
test-run-wasm-sign-extension.cc [wasm] Int64 lowering for I64SExtend operations 2018-05-22 15:49:52 +00:00
test-run-wasm-simd.cc [wasm] Add simd unops to wasm interpreter 2018-05-24 19:01:32 +00:00
test-run-wasm.cc [wasm] Don't store imported WasmCode pointers in code table 2018-05-18 13:00:36 +00:00
test-streaming-compilation.cc [wasm] Reimplement WebAssembly.instantiate without desugaring 2018-05-24 22:15:52 +00:00
test-wasm-breakpoints.cc [wasm] Move {shared} field to {WasmModuleObject}. 2018-05-14 15:55:45 +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] Split off wasm-linkage.h 2018-04-27 13:43:49 +00:00
test-wasm-stack.cc [wasm] Split off wasm-linkage.h 2018-04-27 13:43:49 +00:00
test-wasm-trap-position.cc [wasm] Split off wasm-linkage.h 2018-04-27 13:43:49 +00:00
wasm-atomics-utils.h [wasm] Add I64 Atomic binary operations for x64 2018-03-02 00:30:54 +00:00
wasm-run-utils.cc [wasm] Refactor all call targets to be Addresses 2018-05-15 17:55:50 +00:00
wasm-run-utils.h [wasm] Move {export_wrappers} field to {WasmModuleObject}. 2018-05-11 16:00:58 +00:00