Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 247 static bool SetDebugEventListener(EventCallback that, | 247 static bool SetDebugEventListener(EventCallback that, |
| 248 Handle<Value> data = Handle<Value>()); | 248 Handle<Value> data = Handle<Value>()); |
| 249 static bool SetDebugEventListener2(EventCallback2 that, | 249 static bool SetDebugEventListener2(EventCallback2 that, |
| 250 Handle<Value> data = Handle<Value>()); | 250 Handle<Value> data = Handle<Value>()); |
| 251 | 251 |
| 252 // Set a JavaScript debug event listener. | 252 // Set a JavaScript debug event listener. |
| 253 static bool SetDebugEventListener(v8::Handle<v8::Object> that, | 253 static bool SetDebugEventListener(v8::Handle<v8::Object> that, |
| 254 Handle<Value> data = Handle<Value>()); | 254 Handle<Value> data = Handle<Value>()); |
| 255 | 255 |
| 256 // Schedule a debugger break to happen when JavaScript code is run. | 256 // Schedule a debugger break to happen when JavaScript code is run. |
| 257 static void DebugBreak(); | 257 static void DebugBreak(Isolate* isolate = NULL); |
|
Vitaly Repeshko
2011/03/16 18:08:21
Please document that these functions use the defau
Mads Ager (chromium)
2011/03/16 18:52:47
Done.
| |
| 258 | 258 |
| 259 // Remove scheduled debugger break if it has not happened yet. | 259 // Remove scheduled debugger break if it has not happened yet. |
| 260 static void CancelDebugBreak(); | 260 static void CancelDebugBreak(Isolate* isolate = NULL); |
| 261 | 261 |
| 262 // Break execution of JavaScript (this method can be invoked from a | 262 // Break execution of JavaScript (this method can be invoked from a |
| 263 // non-VM thread) for further client command execution on a VM | 263 // non-VM thread) for further client command execution on a VM |
| 264 // thread. Client data is then passed in EventDetails to | 264 // thread. Client data is then passed in EventDetails to |
| 265 // EventCallback at the moment when the VM actually stops. | 265 // EventCallback at the moment when the VM actually stops. |
| 266 static void DebugBreakForCommand(ClientData* data = NULL); | 266 static void DebugBreakForCommand(ClientData* data = NULL, |
| 267 Isolate* isolate = NULL); | |
| 267 | 268 |
| 268 // Message based interface. The message protocol is JSON. NOTE the message | 269 // Message based interface. The message protocol is JSON. NOTE the message |
| 269 // handler thread is not supported any more parameter must be false. | 270 // handler thread is not supported any more parameter must be false. |
| 270 static void SetMessageHandler(MessageHandler handler, | 271 static void SetMessageHandler(MessageHandler handler, |
| 271 bool message_handler_thread = false); | 272 bool message_handler_thread = false); |
| 272 static void SetMessageHandler2(MessageHandler2 handler); | 273 static void SetMessageHandler2(MessageHandler2 handler); |
| 273 static void SendCommand(const uint16_t* command, int length, | 274 static void SendCommand(const uint16_t* command, int length, |
| 274 ClientData* client_data = NULL); | 275 ClientData* client_data = NULL); |
| 275 | 276 |
| 276 // Dispatch interface. | 277 // Dispatch interface. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 375 }; | 376 }; |
| 376 | 377 |
| 377 | 378 |
| 378 } // namespace v8 | 379 } // namespace v8 |
| 379 | 380 |
| 380 | 381 |
| 381 #undef EXPORT | 382 #undef EXPORT |
| 382 | 383 |
| 383 | 384 |
| 384 #endif // V8_V8_DEBUG_H_ | 385 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |