| Index: test/common/wasm/wasm-module-runner.cc
|
| diff --git a/test/common/wasm/wasm-module-runner.cc b/test/common/wasm/wasm-module-runner.cc
|
| index d4b1772cb29e1dffc3b2ce3c3aed863ce7ed8674..3036480087dfa080e182c26f4f759826d072c813 100644
|
| --- a/test/common/wasm/wasm-module-runner.cc
|
| +++ b/test/common/wasm/wasm-module-runner.cc
|
| @@ -59,17 +59,15 @@ const Handle<WasmInstanceObject> InstantiateModuleForTesting(
|
| // Although we decoded the module for some pre-validation, run the bytes
|
| // again through the normal pipeline.
|
| // TODO(wasm): Use {module} instead of decoding the module bytes again.
|
| - MaybeHandle<WasmModuleObject> module_object = CreateModuleObjectFromBytes(
|
| - isolate, wire_bytes.start(), wire_bytes.end(), thrower,
|
| - ModuleOrigin::kWasmOrigin, Handle<Script>::null(),
|
| - Vector<const byte>::empty());
|
| + MaybeHandle<WasmModuleObject> module_object =
|
| + SyncCompile(isolate, thrower, wire_bytes);
|
| if (module_object.is_null()) {
|
| thrower->CompileError("Module pre-validation failed.");
|
| return Handle<WasmInstanceObject>::null();
|
| }
|
| MaybeHandle<WasmInstanceObject> maybe_instance =
|
| - WasmModule::Instantiate(isolate, thrower, module_object.ToHandleChecked(),
|
| - Handle<JSReceiver>::null());
|
| + SyncInstantiate(isolate, thrower, module_object.ToHandleChecked(),
|
| + Handle<JSReceiver>::null(), MaybeHandle<JSArrayBuffer>());
|
| Handle<WasmInstanceObject> instance;
|
| if (!maybe_instance.ToHandle(&instance)) {
|
| return Handle<WasmInstanceObject>::null();
|
|
|