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 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/test/common/wasm/wasm-module-runner.h b/deps/v8/test/common/wasm/wasm-module-runner.h index f3ed508e40..e78b852a7e 100644 --- a/deps/v8/test/common/wasm/wasm-module-runner.h +++ b/deps/v8/test/common/wasm/wasm-module-runner.h @@ -5,8 +5,8 @@ #ifndef V8_WASM_MODULE_RUNNER_H_ #define V8_WASM_MODULE_RUNNER_H_ -#include "src/isolate.h" -#include "src/objects.h" +#include "src/execution/isolate.h" +#include "src/objects/objects.h" #include "src/wasm/wasm-interpreter.h" #include "src/wasm/wasm-module.h" #include "src/wasm/wasm-objects.h" @@ -57,6 +57,11 @@ bool InterpretWasmModuleForTesting(Isolate* isolate, int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, const byte* module_end); +// Decode and compile the given module with no imports. +MaybeHandle<WasmModuleObject> CompileForTesting(Isolate* isolate, + ErrorThrower* thrower, + const ModuleWireBytes& bytes); + // Decode, compile, and instantiate the given module with no imports. MaybeHandle<WasmInstanceObject> CompileAndInstantiateForTesting( Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes); |