v8/test/cctest/wasm
Ben Smith 425fa3ae15 [wasm] Simplify module creation
This includes WasmEngine::NewNativeModule() and WasmModuleObject::New().
The intent is to make the various ways of creating a module (sync,
async, deserialize, import) more similar.

After this change, a NativeModule will always be created before a
WasmModuleObject. This will make it easier to look up a cached
NativeModule given its wire bytes.

The following changes are made:

* Use WasmCodeManager::EstimateNativeModuleCodeSize() to find the code
  size estimate by default. A different code size estimate is only used in
  tests.
* Change CompileJsToWasmWrappers() to allocate a new FixedArray instead of
  assuming the array was created with the correct size. This simplifies
  WasmModuleObject::New(), and matches what CompileToNativeModule()
  does.
* Remove the WasmModuleObject::New() constructor that creates a
  NativeModule. This case was only used in DeserializeNativeModule() and
  in test code.

Change-Id: I6bdfc425057f92de11abbbf702d052d40aa8267d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1717497
Commit-Queue: Ben Smith <binji@chromium.org>
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62925}
2019-07-25 21:22:46 +00:00
..
OWNERS Reduce wasm OWNERS to current team members 2018-10-15 14:47:49 +00:00
test-c-wasm-entry.cc [wasm-c-api] Faster C-to-Wasm entry 2019-06-27 13:39:48 +00:00
test-jump-table-assembler.cc [wasm] Split jump table and lazy compile table 2019-07-15 10:37:02 +00:00
test-run-wasm-64.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-wasm-asmjs.cc [Liftoff] List unsupported opcodes explicitly 2019-05-29 09:47:28 +00:00
test-run-wasm-atomics64.cc [wasm] Fix Int64-lowering to handle non-const index for I64Atomic ops 2019-04-11 21:10:40 +00:00
test-run-wasm-atomics.cc [wasm] Implement "atomic.fence" operator. 2019-07-19 09:14:42 +00:00
test-run-wasm-bulk-memory.cc [wasm][bulk-memory] Adjust memory.fill to recent spec changes 2019-07-18 16:28:16 +00:00
test-run-wasm-exceptions.cc [wasm][anyref] Cache export wrappers per signature 2019-05-22 14:59:50 +00:00
test-run-wasm-interpreter.cc [wasm][anyref] Cache export wrappers per signature 2019-05-22 14:59:50 +00:00
test-run-wasm-js.cc [wasm][anyref] Cache export wrappers per signature 2019-05-22 14:59:50 +00:00
test-run-wasm-module.cc [wasm][bulk-memory] Adjust elem and data segment to recent spec changes 2019-07-25 08:40:27 +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 simd] Implement I64x2 Min and Max on x64 2019-07-25 18:13:16 +00:00
test-run-wasm.cc [wasm][anyref] Implement correct type checking for br_table 2019-06-25 12:00:21 +00:00
test-streaming-compilation.cc Revert "reland [wasm] Compile JS to WASM wrappers asynchronously" 2019-07-16 11:39:53 +00:00
test-wasm-breakpoints.cc Enable cpplint 'runtime/references' warning 2019-07-08 09:59:36 +00:00
test-wasm-codegen.cc [wasm] Remove non-const arguments from module builder 2019-07-08 11:42:59 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Compile import wrappers in parallel 2019-05-27 09:36:55 +00:00
test-wasm-interpreter-entry.cc Enable cpplint 'runtime/references' warning 2019-07-08 09:59:36 +00:00
test-wasm-serialization.cc Revert "Reland "Reland "[arraybuffer] Rearchitect backing store ownership""" 2019-07-23 12:25:16 +00:00
test-wasm-shared-engine.cc [wasm] Remove non-const arguments from module builder 2019-07-08 11:42:59 +00:00
test-wasm-stack.cc [stack-trace] Change column number for wasm frames to module offset 2019-06-14 11:33:18 +00:00
test-wasm-trap-position.cc [stack-trace] Change column number for wasm frames to module offset 2019-06-14 11:33:18 +00:00
wasm-atomics-utils.h [wasm][cleanup] Using 'using' instead of 'typedef' 2019-03-29 10:20:30 +00:00
wasm-run-utils.cc [wasm] Simplify module creation 2019-07-25 21:22:46 +00:00
wasm-run-utils.h [asm.js] Propagate language mode to exported functions. 2019-07-19 11:47:48 +00:00