OLD | NEW |
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 170 // Check if a debugger break is scheduled in the given isolate. |
171 static bool CheckDebugBreak(Isolate* isolate); | 171 static bool CheckDebugBreak(Isolate* isolate); |
172 | 172 |
173 // Break execution of JavaScript in the given isolate (this method | |
174 // can be invoked from a non-VM thread) for further client command | |
175 // execution on a VM thread. Client data is then passed in | |
176 // EventDetails to EventCallback2 at the moment when the VM actually | |
177 // stops. | |
178 static void DebugBreakForCommand(Isolate* isolate, ClientData* data); | |
179 | |
180 // Message based interface. The message protocol is JSON. | 173 // Message based interface. The message protocol is JSON. |
181 static void SetMessageHandler(MessageHandler handler); | 174 static void SetMessageHandler(MessageHandler handler); |
182 | 175 |
183 static void SendCommand(Isolate* isolate, | 176 static void SendCommand(Isolate* isolate, |
184 const uint16_t* command, int length, | 177 const uint16_t* command, int length, |
185 ClientData* client_data = NULL); | 178 ClientData* client_data = NULL); |
186 | 179 |
187 /** | 180 /** |
188 * Run a JavaScript function in the debugger. | 181 * Run a JavaScript function in the debugger. |
189 * \param fun the function to call | 182 * \param fun the function to call |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 }; | 263 }; |
271 | 264 |
272 | 265 |
273 } // namespace v8 | 266 } // namespace v8 |
274 | 267 |
275 | 268 |
276 #undef EXPORT | 269 #undef EXPORT |
277 | 270 |
278 | 271 |
279 #endif // V8_V8_DEBUG_H_ | 272 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |