Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index f8f0f72c85d4a309ea877a8b1effe5b18667eeef..22e863ae3ecbd389cf98e9dff57d56633a0d6bc6 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -9099,17 +9099,18 @@ void debug::PrepareStep(Isolate* v8_isolate, StepAction action) { |
isolate->debug()->PrepareStep(static_cast<i::StepAction>(action)); |
} |
-bool debug::HasNonBlackboxedFrameOnStack(Isolate* v8_isolate) { |
+void debug::ClearStepping(Isolate* v8_isolate) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); |
ENTER_V8(isolate); |
- i::HandleScope scope(isolate); |
- for (i::StackTraceFrameIterator it(isolate); !it.done(); it.Advance()) { |
- if (!it.is_javascript()) continue; |
- if (!isolate->debug()->IsFrameBlackboxed(it.javascript_frame())) { |
- return true; |
- } |
- } |
- return false; |
+ CHECK(isolate->debug()->CheckExecutionState()); |
+ // Clear all current stepping setup. |
+ isolate->debug()->ClearStepping(); |
+} |
+ |
+bool debug::AllFramesOnStackAreBlackboxed(Isolate* v8_isolate) { |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); |
+ ENTER_V8(isolate); |
+ return isolate->debug()->AllFramesOnStackAreBlackboxed(); |
} |
v8::Isolate* debug::Script::GetIsolate() const { |