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

Unified Diff: src/api.cc

Issue 2723273002: [inspector] introduced Debugger.scheduleStepIntoAsync (Closed)
Patch Set: fixed 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') | src/debug/debug.h » ('J')
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 ed0b02dfa94d0503e74685e3375579912d424152..453e994055704066ed90cde10ef1bc282657cdcf 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -9124,17 +9124,18 @@ void debug::PrepareStep(Isolate* v8_isolate, StepAction action) {
isolate->debug()->PrepareStep(static_cast<i::StepAction>(action));
}
+void debug::ClearStepping(Isolate* v8_isolate) {
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
+ ENTER_V8(isolate);
+ CHECK(isolate->debug()->CheckExecutionState());
+ // Clear all current stepping setup.
+ isolate->debug()->ClearStepping();
+}
+
bool debug::HasNonBlackboxedFrameOnStack(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;
+ return isolate->debug()->HasNonBlackboxedFrameOnStack();
}
v8::Isolate* debug::Script::GetIsolate() const {
« no previous file with comments | « no previous file | src/debug/debug.h » ('j') | src/debug/debug.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698