| Index: src/runtime/runtime-wasm.cc
|
| diff --git a/src/runtime/runtime-wasm.cc b/src/runtime/runtime-wasm.cc
|
| index 3ae5b92da17ccfefd82975a7fcfa68070f6d73a6..dd9cf7783e413d84a0b31f1734114efe18d1c4ca 100644
|
| --- a/src/runtime/runtime-wasm.cc
|
| +++ b/src/runtime/runtime-wasm.cc
|
| @@ -159,6 +159,8 @@ RUNTIME_FUNCTION(Runtime_WasmRunInterpreter) {
|
| CONVERT_NUMBER_CHECKED(int32_t, func_index, Int32, args[1]);
|
| CONVERT_ARG_HANDLE_CHECKED(Object, arg_buffer_obj, 2);
|
| CHECK(WasmInstanceObject::IsWasmInstanceObject(*instance_obj));
|
| + Handle<WasmInstanceObject> instance =
|
| + Handle<WasmInstanceObject>::cast(instance_obj);
|
|
|
| // The arg buffer is the raw pointer to the caller's stack. It looks like a
|
| // Smi (lowest bit not set, as checked by IsSmi), but is no valid Smi. We just
|
| @@ -167,11 +169,7 @@ RUNTIME_FUNCTION(Runtime_WasmRunInterpreter) {
|
| CHECK(arg_buffer_obj->IsSmi());
|
| uint8_t* arg_buffer = reinterpret_cast<uint8_t*>(*arg_buffer_obj);
|
|
|
| - Handle<WasmInstanceObject> instance =
|
| - Handle<WasmInstanceObject>::cast(instance_obj);
|
| - Handle<WasmDebugInfo> debug_info =
|
| - WasmInstanceObject::GetOrCreateDebugInfo(instance);
|
| - WasmDebugInfo::RunInterpreter(debug_info, func_index, arg_buffer);
|
| + instance->debug_info()->RunInterpreter(func_index, arg_buffer);
|
| return isolate->heap()->undefined_value();
|
| }
|
|
|
|
|