v8/test/unittests/wasm
clemensh 6572b5622e [wasm] Remove raw byte pointers from WasmModule
These byte pointers (module_start and module_end) were only valid
during decoding. During instantiation or execution, they can get
invalidated by garbage collection.
This CL removes them from the WasmModule struct, and introduces a new
ModuleStorage struct as interface to the wasm wire bytes.
Since the storage is often needed together with the ModuleEnv, a new
ModuleStorageEnv struct holds both a ModuleEnv and a ModuleStorage.
The pointers in the ModuleStorage should never escape the live range of
this struct, as they might point into a SeqOneByteString or ArrayBuffer.
Therefore, the WasmInterpreter needs to create its own copy of the
whole module.
Runtime functions that previously used the raw pointers in WasmModule
(leading to memory errors) now have to use the SeqOneByteString in the
WasmCompiledModule.

R=titzer@chromium.org
BUG=chromium:669518

Review-Url: https://codereview.chromium.org/2540133002
Cr-Commit-Position: refs/heads/master@{#41388}
2016-11-30 15:03:06 +00:00
..
asm-types-unittest.cc [wasm] Fix more -Wsign-compare warnings. 2016-11-11 11:56:05 +00:00
ast-decoder-unittest.cc [wasm] Remove raw byte pointers from WasmModule 2016-11-30 15:03:06 +00:00
control-transfer-unittest.cc [wasm] Master CL for Binary 0xC changes. 2016-09-27 20:46:30 +00:00
decoder-unittest.cc [wasm] Fix more -Wsign-compare warnings. 2016-11-11 11:56:05 +00:00
leb-helper-unittest.cc [wasm] Fix more -Wsign-compare warnings. 2016-11-11 11:56:05 +00:00
loop-assignment-analysis-unittest.cc [wasm] Move test-signatures.h from test/cctest to test/common 2016-10-05 12:00:03 +00:00
module-decoder-unittest.cc [wasm] Fix more -Wsign-compare warnings. 2016-11-11 11:56:05 +00:00
OWNERS Adding a few more owners to the wasm directory. 2016-06-29 17:38:30 +00:00
switch-logic-unittest.cc [asmjs] Move switch-logic.h to asmjs/ directory. 2016-10-10 17:57:47 +00:00
wasm-macro-gen-unittest.cc [wasm] Fix more -Wsign-compare warnings. 2016-11-11 11:56:05 +00:00
wasm-module-builder-unittest.cc [wasm] Move test-signatures.h from test/cctest to test/common 2016-10-05 12:00:03 +00:00