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

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

Issue 42643: Debugger message handler can be called from V8 thread (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 8 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 // 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 Handle<Value> data = Handle<Value>()); 124 Handle<Value> data = Handle<Value>());
125 125
126 // Set a JavaScript debug event listener. 126 // Set a JavaScript debug event listener.
127 static bool SetDebugEventListener(v8::Handle<v8::Object> that, 127 static bool SetDebugEventListener(v8::Handle<v8::Object> that,
128 Handle<Value> data = Handle<Value>()); 128 Handle<Value> data = Handle<Value>());
129 129
130 // Break execution of JavaScript. 130 // Break execution of JavaScript.
131 static void DebugBreak(); 131 static void DebugBreak();
132 132
133 // Message based interface. The message protocol is JSON. 133 // Message based interface. The message protocol is JSON.
134 static void SetMessageHandler(DebugMessageHandler handler, void* data = NULL); 134 static void SetMessageHandler(DebugMessageHandler handler, void* data = NULL,
135 bool message_handler_thread = true);
135 static void SendCommand(const uint16_t* command, int length); 136 static void SendCommand(const uint16_t* command, int length);
136 137
137 // Dispatch interface. 138 // Dispatch interface.
138 static void SetHostDispatchHandler(DebugHostDispatchHandler handler, 139 static void SetHostDispatchHandler(DebugHostDispatchHandler handler,
139 void* data = NULL); 140 void* data = NULL);
140 static void SendHostDispatch(void* dispatch); 141 static void SendHostDispatch(void* dispatch);
141 142
142 /** 143 /**
143 * Run a JavaScript function in the debugger. 144 * Run a JavaScript function in the debugger.
144 * \param fun the function to call 145 * \param fun the function to call
(...skipping 24 matching lines...) Expand all
169 }; 170 };
170 171
171 172
172 } // namespace v8 173 } // namespace v8
173 174
174 175
175 #undef EXPORT 176 #undef EXPORT
176 177
177 178
178 #endif // V8_DEBUG_H_ 179 #endif // 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