Chromium Code Reviews| Index: src/runtime/runtime-debug.cc |
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
| index f4c81c8c72b5ff499e66276462245f70e7acadb2..a28e9f43f6df4d9f6e944b32f0ca38f90dcde735 100644 |
| --- a/src/runtime/runtime-debug.cc |
| +++ b/src/runtime/runtime-debug.cc |
| @@ -17,6 +17,15 @@ namespace v8 { |
| namespace internal { |
| RUNTIME_FUNCTION(Runtime_DebugBreak) { |
|
Michael Starzinger
2015/07/23 11:36:15
nit: Can we add the following boilerplate to the t
danno
2015/07/23 11:50:22
Done.
|
| + // Get the top-most JavaScript frame. |
| + JavaScriptFrameIterator it(isolate); |
| + isolate->debug()->Break(args, it.frame()); |
| + isolate->debug()->SetAfterBreakTarget(it.frame()); |
| + return isolate->heap()->undefined_value(); |
| +} |
| + |
| + |
| +RUNTIME_FUNCTION(Runtime_HandleDebuggerStatement) { |
| SealHandleScope shs(isolate); |
| DCHECK(args.length() == 0); |
| isolate->debug()->HandleDebugBreak(); |