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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 // EventDetails to EventCallback2 at the moment when the VM actually | 205 // EventDetails to EventCallback2 at the moment when the VM actually |
206 // stops. If no isolate is provided the default isolate is used. | 206 // stops. If no isolate is provided the default isolate is used. |
207 static void DebugBreakForCommand(ClientData* data = NULL, | 207 static void DebugBreakForCommand(ClientData* data = NULL, |
208 Isolate* isolate = NULL); | 208 Isolate* isolate = NULL); |
209 | 209 |
210 // Message based interface. The message protocol is JSON. | 210 // Message based interface. The message protocol is JSON. |
211 static void SetMessageHandler2(MessageHandler2 handler); | 211 static void SetMessageHandler2(MessageHandler2 handler); |
212 | 212 |
213 // If no isolate is provided the default isolate is | 213 // If no isolate is provided the default isolate is |
214 // used. | 214 // used. |
| 215 // TODO(dcarney): remove |
215 static void SendCommand(const uint16_t* command, int length, | 216 static void SendCommand(const uint16_t* command, int length, |
216 ClientData* client_data = NULL, | 217 ClientData* client_data = NULL, |
217 Isolate* isolate = NULL); | 218 Isolate* isolate = NULL); |
| 219 static void SendCommand(Isolate* isolate, |
| 220 const uint16_t* command, int length, |
| 221 ClientData* client_data = NULL); |
218 | 222 |
219 // Dispatch interface. | 223 // Dispatch interface. |
220 static void SetHostDispatchHandler(HostDispatchHandler handler, | 224 static void SetHostDispatchHandler(HostDispatchHandler handler, |
221 int period = 100); | 225 int period = 100); |
222 | 226 |
223 /** | 227 /** |
224 * Register a callback function to be called when a debug message has been | 228 * Register a callback function to be called when a debug message has been |
225 * received and is ready to be processed. For the debug messages to be | 229 * received and is ready to be processed. For the debug messages to be |
226 * processed V8 needs to be entered, and in certain embedding scenarios this | 230 * processed V8 needs to be entered, and in certain embedding scenarios this |
227 * callback can be used to make sure V8 is entered for the debug message to | 231 * callback can be used to make sure V8 is entered for the debug message to |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 }; | 335 }; |
332 | 336 |
333 | 337 |
334 } // namespace v8 | 338 } // namespace v8 |
335 | 339 |
336 | 340 |
337 #undef EXPORT | 341 #undef EXPORT |
338 | 342 |
339 | 343 |
340 #endif // V8_V8_DEBUG_H_ | 344 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |