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

Side by Side Diff: src/runtime/runtime-debug.cc

Issue 2738503006: [inspector] don't make v8::debug::Call for breakProgram. (Closed)
Patch Set: addressed comments Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/debug/debug-coverage.h" 9 #include "src/debug/debug-coverage.h"
10 #include "src/debug/debug-evaluate.h" 10 #include "src/debug/debug-evaluate.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 interpreter::Bytecodes::FromByte(bytecode_array->get(bytecode_offset)); 61 interpreter::Bytecodes::FromByte(bytecode_array->get(bytecode_offset));
62 return isolate->interpreter()->GetBytecodeHandler( 62 return isolate->interpreter()->GetBytecodeHandler(
63 bytecode, interpreter::OperandScale::kSingle); 63 bytecode, interpreter::OperandScale::kSingle);
64 } 64 }
65 65
66 66
67 RUNTIME_FUNCTION(Runtime_HandleDebuggerStatement) { 67 RUNTIME_FUNCTION(Runtime_HandleDebuggerStatement) {
68 SealHandleScope shs(isolate); 68 SealHandleScope shs(isolate);
69 DCHECK_EQ(0, args.length()); 69 DCHECK_EQ(0, args.length());
70 if (isolate->debug()->break_points_active()) { 70 if (isolate->debug()->break_points_active()) {
71 isolate->debug()->HandleDebugBreak(); 71 isolate->debug()->HandleDebugBreak(kIgnoreIfTopFrameBlackboxed);
72 } 72 }
73 return isolate->heap()->undefined_value(); 73 return isolate->heap()->undefined_value();
74 } 74 }
75 75
76 76
77 // Adds a JavaScript function as a debug event listener. 77 // Adds a JavaScript function as a debug event listener.
78 // args[0]: debug event listener function to set or null or undefined for 78 // args[0]: debug event listener function to set or null or undefined for
79 // clearing the event listener function 79 // clearing the event listener function
80 // args[1]: object supplied during callback 80 // args[1]: object supplied during callback
81 RUNTIME_FUNCTION(Runtime_SetDebugEventListener) { 81 RUNTIME_FUNCTION(Runtime_SetDebugEventListener) {
(...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 1944
1945 RUNTIME_FUNCTION(Runtime_DebugTogglePreciseCoverage) { 1945 RUNTIME_FUNCTION(Runtime_DebugTogglePreciseCoverage) {
1946 SealHandleScope shs(isolate); 1946 SealHandleScope shs(isolate);
1947 CONVERT_BOOLEAN_ARG_CHECKED(enable, 0); 1947 CONVERT_BOOLEAN_ARG_CHECKED(enable, 0);
1948 Coverage::TogglePrecise(isolate, enable); 1948 Coverage::TogglePrecise(isolate, enable);
1949 return isolate->heap()->undefined_value(); 1949 return isolate->heap()->undefined_value();
1950 } 1950 }
1951 1951
1952 } // namespace internal 1952 } // namespace internal
1953 } // namespace v8 1953 } // namespace v8
OLDNEW
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | test/inspector/debugger/stepping-and-break-program-api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698