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) { |