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

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

Issue 6672044: [Isolates] Fix debugger and termination APIs callable from other threads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: Created 9 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 | Annotate | Revision Log
« include/v8.h ('K') | « include/v8.h ('k') | 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 // 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
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
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_
OLDNEW
« include/v8.h ('K') | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698