Index: src/wasm/wasm-js.cc |
diff --git a/src/wasm/wasm-js.cc b/src/wasm/wasm-js.cc |
index 57ee2654f9981e96d4b9a513d09689f5c60f590d..2e42e608524160336ee854bc10a97c9d3a463541 100644 |
--- a/src/wasm/wasm-js.cc |
+++ b/src/wasm/wasm-js.cc |
@@ -134,8 +134,7 @@ void VerifyFunction(const v8::FunctionCallbackInfo<v8::Value>& args) { |
i::MaybeHandle<i::JSObject> InstantiateModule( |
const v8::FunctionCallbackInfo<v8::Value>& args, const byte* start, |
- const byte* end, ErrorThrower* thrower, |
- internal::wasm::ModuleOrigin origin = i::wasm::kWasmOrigin) { |
+ const byte* end, ErrorThrower* thrower) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); |
// Decode but avoid a redundant pass over function bodies for verification. |
@@ -143,7 +142,8 @@ i::MaybeHandle<i::JSObject> InstantiateModule( |
i::Zone zone(isolate->allocator()); |
i::MaybeHandle<i::JSObject> module_object = |
i::wasm::CreateModuleObjectFromBytes(isolate, start, end, thrower, |
- origin); |
+ i::wasm::kWasmOrigin, |
+ i::Handle<i::Script>::null()); |
i::MaybeHandle<i::JSObject> object; |
if (!module_object.is_null()) { |
// Success. Instantiate the module and return the object. |
@@ -195,8 +195,8 @@ static i::MaybeHandle<i::JSObject> CreateModuleObject( |
DCHECK(source->IsArrayBuffer() || source->IsTypedArray()); |
return i::wasm::CreateModuleObjectFromBytes( |
- i_isolate, buffer.start, buffer.end, thrower, |
- i::wasm::ModuleOrigin::kWasmOrigin); |
+ i_isolate, buffer.start, buffer.end, thrower, i::wasm::kWasmOrigin, |
+ i::Handle<i::Script>::null()); |
} |
static bool ValidateModule(v8::Isolate* isolate, |