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

Unified Diff: src/runtime/runtime-debug.cc

Issue 2514303003: [debug-wrapper] Implement StepFrame through runtime (Closed)
Patch Set: Created 4 years, 1 month 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 | « src/runtime/runtime.h ('k') | test/debugger/debug/debug-stepframe.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-debug.cc
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
index c719c6412ce0dded3c58fd2cad17d3bb4a2f682c..bcb6cee0350a347562b6aad0e93f108f979126f9 100644
--- a/src/runtime/runtime-debug.cc
+++ b/src/runtime/runtime-debug.cc
@@ -1240,6 +1240,18 @@ RUNTIME_FUNCTION(Runtime_PrepareStep) {
return isolate->heap()->undefined_value();
}
+RUNTIME_FUNCTION(Runtime_PrepareStepFrame) {
+ HandleScope scope(isolate);
+ DCHECK_EQ(0, args.length());
+ CHECK(isolate->debug()->CheckExecutionState());
+
+ // Clear all current stepping setup.
+ isolate->debug()->ClearStepping();
+
+ // Prepare step.
+ isolate->debug()->PrepareStep(StepFrame);
+ return isolate->heap()->undefined_value();
+}
// Clear all stepping set by PrepareStep.
RUNTIME_FUNCTION(Runtime_ClearStepping) {
« no previous file with comments | « src/runtime/runtime.h ('k') | test/debugger/debug/debug-stepframe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698