Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index 943e1265566f17723ae4f15da367fbc0e7b8d2e3..6caa16f1c6eb82e79edf044ab5bbc7b09128bce7 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -17,6 +17,7 @@ |
#include "src/snapshot/code-serializer.h" |
#include "src/snapshot/natives.h" |
#include "src/wasm/wasm-module.h" |
+#include "src/wasm/wasm-objects.h" |
namespace v8 { |
namespace internal { |
@@ -783,9 +784,8 @@ RUNTIME_FUNCTION(Runtime_DeserializeWasmModule) { |
if (!maybe_compiled_module.ToHandle(&compiled_module)) { |
return isolate->heap()->undefined_value(); |
} |
- return *wasm::CreateWasmModuleObject( |
- isolate, Handle<wasm::WasmCompiledModule>::cast(compiled_module), |
- wasm::kWasmOrigin); |
+ return *WasmModuleObject::New( |
+ isolate, Handle<WasmCompiledModule>::cast(compiled_module)); |
} |
RUNTIME_FUNCTION(Runtime_ValidateWasmInstancesChain) { |