Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3085 * isolate is used. | 3085 * isolate is used. |
| 3086 * | 3086 * |
| 3087 * This method can be used by any thread even if that thread has not | 3087 * This method can be used by any thread even if that thread has not |
| 3088 * acquired the V8 lock with a Locker object. | 3088 * acquired the V8 lock with a Locker object. |
| 3089 * | 3089 * |
| 3090 * \param isolate The isolate in which to terminate the current JS execution. | 3090 * \param isolate The isolate in which to terminate the current JS execution. |
| 3091 */ | 3091 */ |
| 3092 static void TerminateExecution(Isolate* isolate = NULL); | 3092 static void TerminateExecution(Isolate* isolate = NULL); |
| 3093 | 3093 |
| 3094 /** | 3094 /** |
| 3095 * Is V8 terminating JavaScript execution. | 3095 * Is V8 terminating JavaScript execution. |
|
Vitaly Repeshko
2011/06/10 08:18:50
Please update the comment.
mnaganov (inactive)
2011/06/10 09:31:32
Done.
| |
| 3096 * | 3096 * |
| 3097 * Returns true if JavaScript execution is currently terminating | 3097 * Returns true if JavaScript execution is currently terminating |
| 3098 * because of a call to TerminateExecution. In that case there are | 3098 * because of a call to TerminateExecution. In that case there are |
| 3099 * still JavaScript frames on the stack and the termination | 3099 * still JavaScript frames on the stack and the termination |
| 3100 * exception is still active. | 3100 * exception is still active. |
| 3101 */ | 3101 */ |
| 3102 static bool IsExecutionTerminating(); | 3102 static bool IsExecutionTerminating(Isolate* isolate = NULL); |
| 3103 | 3103 |
| 3104 /** | 3104 /** |
| 3105 * Releases any resources used by v8 and stops any utility threads | 3105 * Releases any resources used by v8 and stops any utility threads |
| 3106 * that may be running. Note that disposing v8 is permanent, it | 3106 * that may be running. Note that disposing v8 is permanent, it |
| 3107 * cannot be reinitialized. | 3107 * cannot be reinitialized. |
| 3108 * | 3108 * |
| 3109 * It should generally not be necessary to dispose v8 before exiting | 3109 * It should generally not be necessary to dispose v8 before exiting |
| 3110 * a process, this should happen automatically. It is only necessary | 3110 * a process, this should happen automatically. It is only necessary |
| 3111 * to use if the process needs the resources taken up by v8. | 3111 * to use if the process needs the resources taken up by v8. |
| 3112 */ | 3112 */ |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4138 | 4138 |
| 4139 | 4139 |
| 4140 } // namespace v8 | 4140 } // namespace v8 |
| 4141 | 4141 |
| 4142 | 4142 |
| 4143 #undef V8EXPORT | 4143 #undef V8EXPORT |
| 4144 #undef TYPE_CHECK | 4144 #undef TYPE_CHECK |
| 4145 | 4145 |
| 4146 | 4146 |
| 4147 #endif // V8_H_ | 4147 #endif // V8_H_ |
| OLD | NEW |