diff --git a/src/debug/debug.cc b/src/debug/debug.cc index a7a3d2fd81..b7ee9a5f2e 100644 --- a/src/debug/debug.cc +++ b/src/debug/debug.cc @@ -872,20 +872,6 @@ void Debug::PrepareStepIn(Handle function) { if (in_debug_scope()) return; if (break_disabled()) return; Handle shared(function->shared(), isolate_); - // If stepping from JS into Wasm, and we are using the wasm interpreter for - // debugging, prepare the interpreter for step in. - if (shared->HasWasmExportedFunctionData() && !FLAG_debug_in_liftoff) { - auto imported_function = Handle::cast(function); - Handle wasm_instance(imported_function->instance(), - isolate_); - Handle wasm_debug_info = - WasmInstanceObject::GetOrCreateDebugInfo(wasm_instance); - int func_index = shared->wasm_exported_function_data().function_index(); - WasmDebugInfo::PrepareStepIn(wasm_debug_info, func_index); - // We need to reset all of this since break would be - // handled in Wasm Interpreter now. Otherwise it would be a loop here. - ClearStepping(); - } if (IsBlackboxed(shared)) return; if (*function == thread_local_.ignore_step_into_function_) return; thread_local_.ignore_step_into_function_ = Smi::zero(); @@ -1048,7 +1034,7 @@ void Debug::PrepareStep(StepAction step_action) { wasm_frame->debug_info().PrepareStep(step_action); return; } - } else if (FLAG_debug_in_liftoff && frame->is_wasm_compiled()) { + } else if (frame->is_wasm_compiled()) { // Handle stepping in Liftoff code. WasmCompiledFrame* wasm_frame = WasmCompiledFrame::cast(frame); wasm::WasmCodeRefScope code_ref_scope; diff --git a/src/flags/flag-definitions.h b/src/flags/flag-definitions.h index 2d23feb27d..d76515e3c9 100644 --- a/src/flags/flag-definitions.h +++ b/src/flags/flag-definitions.h @@ -721,10 +721,6 @@ DEFINE_BOOL(trace_wasm_memory, false, DEFINE_INT(wasm_tier_mask_for_testing, 0, "bitmask of functions to compile with TurboFan instead of Liftoff") -DEFINE_BOOL( - debug_in_liftoff, true, - "use Liftoff instead of the C++ interpreter for debugging WebAssembly") - DEFINE_BOOL(validate_asm, true, "validate asm.js modules before compiling") DEFINE_BOOL(suppress_asm_messages, false, "don't emit asm.js related messages (for golden file testing)") diff --git a/src/wasm/wasm-debug.cc b/src/wasm/wasm-debug.cc index 6d3a8b94d2..5578e66c87 100644 --- a/src/wasm/wasm-debug.cc +++ b/src/wasm/wasm-debug.cc @@ -1318,94 +1318,11 @@ bool WasmScript::SetBreakPointForFunction(Handle