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 d6702e1e37887e94309e520f9457abfc63efdafc..74553edb05211b2120ddd3b961bcd7cc3b60ddd3 100644 |
--- a/test/common/wasm/wasm-module-runner.h |
+++ b/test/common/wasm/wasm-module-runner.h |
@@ -10,6 +10,7 @@ |
#include "src/objects.h" |
#include "src/wasm/wasm-interpreter.h" |
#include "src/wasm/wasm-module.h" |
+#include "src/wasm/wasm-objects.h" |
#include "src/wasm/wasm-result.h" |
#include "src/zone/zone.h" |
@@ -24,9 +25,8 @@ const WasmModule* DecodeWasmModuleForTesting( |
const byte* module_end, ModuleOrigin origin, bool verify_functions = false); |
// Instantiates a module without any imports and exports. |
-const Handle<JSObject> InstantiateModuleForTesting(Isolate* isolate, |
- ErrorThrower* thrower, |
- const WasmModule* module); |
+const Handle<WasmInstanceObject> InstantiateModuleForTesting( |
+ Isolate* isolate, ErrorThrower* thrower, const WasmModule* module); |
int32_t CallWasmFunctionForTesting(Isolate* isolate, Handle<JSObject> instance, |
ErrorThrower* thrower, const char* name, |
@@ -46,7 +46,7 @@ int32_t InterpretWasmModule(Isolate* isolate, ErrorThrower* thrower, |
WasmVal* args, bool* may_produced_nan); |
// Compiles WasmModule bytes and return an instance of the compiled module. |
-const Handle<JSObject> CompileInstantiateWasmModuleForTesting( |
+const Handle<WasmInstanceObject> CompileInstantiateWasmModuleForTesting( |
Isolate* isolate, ErrorThrower* thrower, const byte* module_start, |
const byte* module_end, ModuleOrigin origin); |