OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 thread_local_.pending_message_obj_ = Heap::the_hole_value(); | 150 thread_local_.pending_message_obj_ = Heap::the_hole_value(); |
151 thread_local_.pending_message_script_ = NULL; | 151 thread_local_.pending_message_script_ = NULL; |
152 } | 152 } |
153 static v8::TryCatch* try_catch_handler() { | 153 static v8::TryCatch* try_catch_handler() { |
154 return thread_local_.try_catch_handler_; | 154 return thread_local_.try_catch_handler_; |
155 } | 155 } |
156 // This method is called by the api after operations that may throw | 156 // This method is called by the api after operations that may throw |
157 // exceptions. If an exception was thrown and not handled by an external | 157 // exceptions. If an exception was thrown and not handled by an external |
158 // handler the exception is scheduled to be rethrown when we return to running | 158 // handler the exception is scheduled to be rethrown when we return to running |
159 // JavaScript code. If an exception is scheduled true is returned. | 159 // JavaScript code. If an exception is scheduled true is returned. |
160 static bool OptionalRescheduleException(bool is_bottom_call, | 160 static bool OptionalRescheduleException(bool is_bottom_call); |
161 bool force_clear_catchable); | 161 |
162 | 162 |
163 static bool* external_caught_exception_address() { | 163 static bool* external_caught_exception_address() { |
164 return &thread_local_.external_caught_exception_; | 164 return &thread_local_.external_caught_exception_; |
165 } | 165 } |
166 | 166 |
167 static Object* scheduled_exception() { | 167 static Object* scheduled_exception() { |
168 ASSERT(has_scheduled_exception()); | 168 ASSERT(has_scheduled_exception()); |
169 return thread_local_.scheduled_exception_; | 169 return thread_local_.scheduled_exception_; |
170 } | 170 } |
171 static bool has_scheduled_exception() { | 171 static bool has_scheduled_exception() { |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 405 |
406 class ExecutionAccess BASE_EMBEDDED { | 406 class ExecutionAccess BASE_EMBEDDED { |
407 public: | 407 public: |
408 ExecutionAccess(); | 408 ExecutionAccess(); |
409 ~ExecutionAccess(); | 409 ~ExecutionAccess(); |
410 }; | 410 }; |
411 | 411 |
412 } } // namespace v8::internal | 412 } } // namespace v8::internal |
413 | 413 |
414 #endif // V8_TOP_H_ | 414 #endif // V8_TOP_H_ |
OLD | NEW |