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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 /** | 283 /** |
284 * Makes V8 process all pending debug messages. | 284 * Makes V8 process all pending debug messages. |
285 * | 285 * |
286 * From V8 point of view all debug messages come asynchronously (e.g. from | 286 * From V8 point of view all debug messages come asynchronously (e.g. from |
287 * remote debugger) but they all must be handled synchronously: V8 cannot | 287 * remote debugger) but they all must be handled synchronously: V8 cannot |
288 * do 2 things at one time so normal script execution must be interrupted | 288 * do 2 things at one time so normal script execution must be interrupted |
289 * for a while. | 289 * for a while. |
290 * | 290 * |
291 * Generally when message arrives V8 may be in one of 3 states: | 291 * Generally when message arrives V8 may be in one of 3 states: |
292 * 1. V8 is running script; V8 will automatically interrupt and process all | 292 * 1. V8 is running script; V8 will automatically interrupt and process all |
293 * pending messages (however auto_break flag should be enabled); | 293 * pending messages; |
294 * 2. V8 is suspended on debug breakpoint; in this state V8 is dedicated | 294 * 2. V8 is suspended on debug breakpoint; in this state V8 is dedicated |
295 * to reading and processing debug messages; | 295 * to reading and processing debug messages; |
296 * 3. V8 is not running at all or has called some long-working C++ function; | 296 * 3. V8 is not running at all or has called some long-working C++ function; |
297 * by default it means that processing of all debug messages will be deferred | 297 * by default it means that processing of all debug messages will be deferred |
298 * until V8 gets control again; however, embedding application may improve | 298 * until V8 gets control again; however, embedding application may improve |
299 * this by manually calling this method. | 299 * this by manually calling this method. |
300 * | 300 * |
301 * It makes sense to call this method whenever a new debug message arrived and | 301 * It makes sense to call this method whenever a new debug message arrived and |
302 * V8 is not already running. Method v8::Debug::SetDebugMessageDispatchHandler | 302 * V8 is not already running. Method v8::Debug::SetDebugMessageDispatchHandler |
303 * should help with the former condition. | 303 * should help with the former condition. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 }; | 335 }; |
336 | 336 |
337 | 337 |
338 } // namespace v8 | 338 } // namespace v8 |
339 | 339 |
340 | 340 |
341 #undef EXPORT | 341 #undef EXPORT |
342 | 342 |
343 | 343 |
344 #endif // V8_V8_DEBUG_H_ | 344 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |