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

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

Issue 505025: Implement issue 549 Make V8 call DebugMessageDispatchHandler with Locker locked (Closed)
Patch Set: move debug command back Created 10 years, 11 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
« 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 int period = 100); 217 int period = 100);
218 218
219 /** 219 /**
220 * Register a callback function to be called when a debug message has been 220 * Register a callback function to be called when a debug message has been
221 * received and is ready to be processed. For the debug messages to be 221 * received and is ready to be processed. For the debug messages to be
222 * processed V8 needs to be entered, and in certain embedding scenarios this 222 * processed V8 needs to be entered, and in certain embedding scenarios this
223 * callback can be used to make sure V8 is entered for the debug message to 223 * callback can be used to make sure V8 is entered for the debug message to
224 * be processed. Note that debug messages will only be processed if there is 224 * be processed. Note that debug messages will only be processed if there is
225 * a V8 break. This can happen automatically by using the option 225 * a V8 break. This can happen automatically by using the option
226 * --debugger-auto-break. 226 * --debugger-auto-break.
227 * \param provide_locker requires that V8 acquires v8::Locker for you before
228 * calling handler
227 */ 229 */
228 static void SetDebugMessageDispatchHandler( 230 static void SetDebugMessageDispatchHandler(
229 DebugMessageDispatchHandler handler); 231 DebugMessageDispatchHandler handler, bool provide_locker = false);
230 232
231 /** 233 /**
232 * Run a JavaScript function in the debugger. 234 * Run a JavaScript function in the debugger.
233 * \param fun the function to call 235 * \param fun the function to call
234 * \param data passed as second argument to the function 236 * \param data passed as second argument to the function
235 * With this call the debugger is entered and the function specified is called 237 * With this call the debugger is entered and the function specified is called
236 * with the execution state as the first argument. This makes it possible to 238 * with the execution state as the first argument. This makes it possible to
237 * get access to information otherwise not available during normal JavaScript 239 * get access to information otherwise not available during normal JavaScript
238 * execution e.g. details on stack frames. The following example show a 240 * execution e.g. details on stack frames. The following example show a
239 * JavaScript function which when passed to v8::Debug::Call will return the 241 * JavaScript function which when passed to v8::Debug::Call will return the
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 }; 305 };
304 306
305 307
306 } // namespace v8 308 } // namespace v8
307 309
308 310
309 #undef EXPORT 311 #undef EXPORT
310 312
311 313
312 #endif // V8_V8_DEBUG_H_ 314 #endif // V8_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