Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: src/api.cc

Issue 2723273002: [inspector] introduced Debugger.scheduleStepIntoAsync (Closed)
Patch Set: fixed tests Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/debug/debug.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | src/debug/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698