Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 2930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2941 * \param thread_id The thread id of the thread to terminate. | 2941 * \param thread_id The thread id of the thread to terminate. |
| 2942 */ | 2942 */ |
| 2943 static void TerminateExecution(int thread_id); | 2943 static void TerminateExecution(int thread_id); |
| 2944 | 2944 |
| 2945 /** | 2945 /** |
| 2946 * Forcefully terminate the current thread of JavaScript execution. | 2946 * Forcefully terminate the current thread of JavaScript execution. |
| 2947 * | 2947 * |
| 2948 * This method can be used by any thread even if that thread has not | 2948 * This method can be used by any thread even if that thread has not |
| 2949 * acquired the V8 lock with a Locker object. | 2949 * acquired the V8 lock with a Locker object. |
| 2950 */ | 2950 */ |
| 2951 static void TerminateExecution(); | 2951 static void TerminateExecution(Isolate* isolate = NULL); |
|
Vitaly Repeshko
2011/03/16 18:08:21
Same here.
Mads Ager (chromium)
2011/03/16 18:52:47
Done.
| |
| 2952 | 2952 |
| 2953 /** | 2953 /** |
| 2954 * Is V8 terminating JavaScript execution. | 2954 * Is V8 terminating JavaScript execution. |
| 2955 * | 2955 * |
| 2956 * Returns true if JavaScript execution is currently terminating | 2956 * Returns true if JavaScript execution is currently terminating |
| 2957 * because of a call to TerminateExecution. In that case there are | 2957 * because of a call to TerminateExecution. In that case there are |
| 2958 * still JavaScript frames on the stack and the termination | 2958 * still JavaScript frames on the stack and the termination |
| 2959 * exception is still active. | 2959 * exception is still active. |
| 2960 */ | 2960 */ |
| 2961 static bool IsExecutionTerminating(); | 2961 static bool IsExecutionTerminating(); |
| (...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3966 | 3966 |
| 3967 | 3967 |
| 3968 } // namespace v8 | 3968 } // namespace v8 |
| 3969 | 3969 |
| 3970 | 3970 |
| 3971 #undef V8EXPORT | 3971 #undef V8EXPORT |
| 3972 #undef TYPE_CHECK | 3972 #undef TYPE_CHECK |
| 3973 | 3973 |
| 3974 | 3974 |
| 3975 #endif // V8_H_ | 3975 #endif // V8_H_ |
| OLD | NEW |