diff options
Diffstat (limited to 'deps/v8/test/common/wasm/wasm-module-runner.h')
-rw-r--r-- | deps/v8/test/common/wasm/wasm-module-runner.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/test/common/wasm/wasm-module-runner.h b/deps/v8/test/common/wasm/wasm-module-runner.h index cf85822175..7b1c8bb5c0 100644 --- a/deps/v8/test/common/wasm/wasm-module-runner.h +++ b/deps/v8/test/common/wasm/wasm-module-runner.h @@ -54,6 +54,10 @@ bool InterpretWasmModuleForTesting(Isolate* isolate, int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, const byte* module_end); +// Decode, compile, and instantiate the given module with no imports. +MaybeHandle<WasmInstanceObject> CompileAndInstantiateForTesting( + Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes); + // Interprets the given module, starting at the function specified by // {function_index}. The return type of the function has to be int32. The module // should not have any imports or exports |