Index: test/common/wasm/wasm-module-runner.h |
diff --git a/test/common/wasm/wasm-module-runner.h b/test/common/wasm/wasm-module-runner.h |
index 80bd2ff5d2d9d26cbb476ec45c791b07109e2145..780d23e06f67e40abfaeb4785eeba458c69dbf79 100644 |
--- a/test/common/wasm/wasm-module-runner.h |
+++ b/test/common/wasm/wasm-module-runner.h |
@@ -47,6 +47,15 @@ int32_t InterpretWasmModule(Isolate* isolate, ErrorThrower* thrower, |
const WasmModule* module, int function_index, |
WasmVal* args); |
+// Compiles WasmModule bytes and return an instance of the compiled module. |
+const Handle<JSObject> CompileInstantiateWasmModuleForTesting( |
+ Isolate* isolate, Zone* zone, const byte* module_start, |
+ const byte* module_end, ModuleOrigin origin); |
+ |
+// Runs the module instance with arguments. |
+int32_t RunWasmModuleForTesting(Isolate* isolate, Handle<JSObject> instance, |
+ int argc, Handle<Object> argv[], |
+ ModuleOrigin origin); |
// Install function map, module symbol for testing |
void SetupIsolateForWasmModule(Isolate* isolate); |
} // namespace testing |