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

Side by Side Diff: include/v8-debug.h

Issue 473913002: Expose function CheckDebugBreak in the debugger api (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix dot Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 #ifndef V8_V8_DEBUG_H_ 5 #ifndef V8_V8_DEBUG_H_
6 #define V8_V8_DEBUG_H_ 6 #define V8_V8_DEBUG_H_
7 7
8 #include "v8.h" 8 #include "v8.h"
9 9
10 /** 10 /**
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 Handle<Value> data = Handle<Value>()); 160 Handle<Value> data = Handle<Value>());
161 161
162 // Schedule a debugger break to happen when JavaScript code is run 162 // Schedule a debugger break to happen when JavaScript code is run
163 // in the given isolate. 163 // in the given isolate.
164 static void DebugBreak(Isolate* isolate); 164 static void DebugBreak(Isolate* isolate);
165 165
166 // Remove scheduled debugger break in given isolate if it has not 166 // Remove scheduled debugger break in given isolate if it has not
167 // happened yet. 167 // happened yet.
168 static void CancelDebugBreak(Isolate* isolate); 168 static void CancelDebugBreak(Isolate* isolate);
169 169
170 // Check if a debugger break is scheduled in the given isolate.
171 static bool CheckDebugBreak(Isolate* isolate);
172
170 // Break execution of JavaScript in the given isolate (this method 173 // Break execution of JavaScript in the given isolate (this method
171 // can be invoked from a non-VM thread) for further client command 174 // can be invoked from a non-VM thread) for further client command
172 // execution on a VM thread. Client data is then passed in 175 // execution on a VM thread. Client data is then passed in
173 // EventDetails to EventCallback2 at the moment when the VM actually 176 // EventDetails to EventCallback2 at the moment when the VM actually
174 // stops. 177 // stops.
175 static void DebugBreakForCommand(Isolate* isolate, ClientData* data); 178 static void DebugBreakForCommand(Isolate* isolate, ClientData* data);
176 179
177 // Message based interface. The message protocol is JSON. 180 // Message based interface. The message protocol is JSON.
178 static void SetMessageHandler(MessageHandler handler); 181 static void SetMessageHandler(MessageHandler handler);
179 182
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 }; 261 };
259 262
260 263
261 } // namespace v8 264 } // namespace v8
262 265
263 266
264 #undef EXPORT 267 #undef EXPORT
265 268
266 269
267 #endif // V8_V8_DEBUG_H_ 270 #endif // V8_V8_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698