Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 0bff90b8c0bac865eef8a2544679140e6bbe8202..d12a89db98f76b7aa4c514d5ae64ce27bf8871f5 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -10723,7 +10723,7 @@ RUNTIME_FUNCTION(Runtime_LookupAccessor) { |
RUNTIME_FUNCTION(Runtime_DebugBreak) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 0); |
- Execution::DebugBreakHelper(isolate); |
+ isolate->debug()->DebugBreakHelper(); |
return isolate->heap()->undefined_value(); |
} |
@@ -10840,7 +10840,7 @@ RUNTIME_FUNCTION(Runtime_DebugGetPropertyDetails) { |
// could have the assumption that its own native context is the current |
// context and not some internal debugger context. |
SaveContext save(isolate); |
- if (isolate->debug()->InDebugger()) { |
+ if (isolate->debug()->is_entered()) { |
isolate->set_context(*isolate->debug()->debugger_entry()->GetContext()); |
} |
@@ -12887,7 +12887,7 @@ RUNTIME_FUNCTION(Runtime_DebugEvaluate) { |
CONVERT_ARG_HANDLE_CHECKED(Object, context_extension, 5); |
// Handle the processing of break. |
- DisableBreak disable_break_save(isolate, disable_break); |
+ DisableBreak disable_break_scope(isolate->debug(), disable_break); |
// Get the frame where the debugging is performed. |
StackFrame::Id id = UnwrapFrameId(wrapped_id); |
@@ -12951,7 +12951,7 @@ RUNTIME_FUNCTION(Runtime_DebugEvaluateGlobal) { |
CONVERT_ARG_HANDLE_CHECKED(Object, context_extension, 3); |
// Handle the processing of break. |
- DisableBreak disable_break_save(isolate, disable_break); |
+ DisableBreak disable_break_scope(isolate->debug(), disable_break); |
// Enter the top context from before the debugger was invoked. |
SaveContext save(isolate); |