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

Side by Side Diff: include/v8.h

Issue 668052: Add IsExecutionTerminating api method.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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
« 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 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-2009 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 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after
2457 2457
2458 /** 2458 /**
2459 * Forcefully terminate the current thread of JavaScript execution. 2459 * Forcefully terminate the current thread of JavaScript execution.
2460 * 2460 *
2461 * This method can be used by any thread even if that thread has not 2461 * This method can be used by any thread even if that thread has not
2462 * acquired the V8 lock with a Locker object. 2462 * acquired the V8 lock with a Locker object.
2463 */ 2463 */
2464 static void TerminateExecution(); 2464 static void TerminateExecution();
2465 2465
2466 /** 2466 /**
2467 * Is V8 terminating JavaScript execution.
2468 *
2469 * Returns true if JavaScript execution is currently terminating
2470 * because of a call to TerminateExecution. In that case there are
2471 * still JavaScript frames on the stack and the termination
2472 * exception is still active.
2473 */
2474 static bool IsExecutionTerminating();
2475
2476 /**
2467 * Releases any resources used by v8 and stops any utility threads 2477 * Releases any resources used by v8 and stops any utility threads
2468 * that may be running. Note that disposing v8 is permanent, it 2478 * that may be running. Note that disposing v8 is permanent, it
2469 * cannot be reinitialized. 2479 * cannot be reinitialized.
2470 * 2480 *
2471 * It should generally not be necessary to dispose v8 before exiting 2481 * It should generally not be necessary to dispose v8 before exiting
2472 * a process, this should happen automatically. It is only necessary 2482 * a process, this should happen automatically. It is only necessary
2473 * to use if the process needs the resources taken up by v8. 2483 * to use if the process needs the resources taken up by v8.
2474 */ 2484 */
2475 static bool Dispose(); 2485 static bool Dispose();
2476 2486
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
3303 3313
3304 } // namespace v8 3314 } // namespace v8
3305 3315
3306 3316
3307 #undef V8EXPORT 3317 #undef V8EXPORT
3308 #undef V8EXPORT_INLINE 3318 #undef V8EXPORT_INLINE
3309 #undef TYPE_CHECK 3319 #undef TYPE_CHECK
3310 3320
3311 3321
3312 #endif // V8_H_ 3322 #endif // V8_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