| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index aa9bcb4a9d404f4fa6417fd24e23d77b0cb29aff..9db7b7f0f1ccce5bf707d01b6670e9ed31cce644 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -1803,8 +1803,8 @@ RUNTIME_FUNCTION(Runtime_GetWasmFunctionOffsetTable) {
|
| CHECK(script_val->value()->IsScript());
|
| Handle<Script> script = Handle<Script>(Script::cast(script_val->value()));
|
|
|
| - Handle<wasm::WasmDebugInfo> debug_info(
|
| - wasm::GetDebugInfo(script->wasm_object()), isolate);
|
| + Handle<wasm::WasmDebugInfo> debug_info =
|
| + wasm::GetDebugInfo(handle(script->wasm_object(), isolate));
|
| Handle<FixedArray> elements = wasm::WasmDebugInfo::GetFunctionOffsetTable(
|
| debug_info, script->wasm_function_index());
|
| return *isolate->factory()->NewJSArrayWithElements(elements);
|
| @@ -1818,8 +1818,8 @@ RUNTIME_FUNCTION(Runtime_DisassembleWasmFunction) {
|
| CHECK(script_val->value()->IsScript());
|
| Handle<Script> script = Handle<Script>(Script::cast(script_val->value()));
|
|
|
| - Handle<wasm::WasmDebugInfo> debug_info(
|
| - wasm::GetDebugInfo(script->wasm_object()), isolate);
|
| + Handle<wasm::WasmDebugInfo> debug_info =
|
| + wasm::GetDebugInfo(handle(script->wasm_object(), isolate));
|
| return *wasm::WasmDebugInfo::DisassembleFunction(
|
| debug_info, script->wasm_function_index());
|
| }
|
|
|