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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |