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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 // exceptions. If an exception was thrown and not handled by an external | 163 // exceptions. If an exception was thrown and not handled by an external |
164 // handler the exception is scheduled to be rethrown when we return to running | 164 // handler the exception is scheduled to be rethrown when we return to running |
165 // JavaScript code. If an exception is scheduled true is returned. | 165 // JavaScript code. If an exception is scheduled true is returned. |
166 static bool OptionalRescheduleException(bool is_bottom_call); | 166 static bool OptionalRescheduleException(bool is_bottom_call); |
167 | 167 |
168 | 168 |
169 static bool* external_caught_exception_address() { | 169 static bool* external_caught_exception_address() { |
170 return &thread_local_.external_caught_exception_; | 170 return &thread_local_.external_caught_exception_; |
171 } | 171 } |
172 | 172 |
| 173 static Object** scheduled_exception_address() { |
| 174 return &thread_local_.scheduled_exception_; |
| 175 } |
| 176 |
173 static Object* scheduled_exception() { | 177 static Object* scheduled_exception() { |
174 ASSERT(has_scheduled_exception()); | 178 ASSERT(has_scheduled_exception()); |
175 return thread_local_.scheduled_exception_; | 179 return thread_local_.scheduled_exception_; |
176 } | 180 } |
177 static bool has_scheduled_exception() { | 181 static bool has_scheduled_exception() { |
178 return !thread_local_.scheduled_exception_->IsTheHole(); | 182 return !thread_local_.scheduled_exception_->IsTheHole(); |
179 } | 183 } |
180 static void clear_scheduled_exception() { | 184 static void clear_scheduled_exception() { |
181 thread_local_.scheduled_exception_ = Heap::the_hole_value(); | 185 thread_local_.scheduled_exception_ = Heap::the_hole_value(); |
182 } | 186 } |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 416 |
413 class ExecutionAccess BASE_EMBEDDED { | 417 class ExecutionAccess BASE_EMBEDDED { |
414 public: | 418 public: |
415 ExecutionAccess(); | 419 ExecutionAccess(); |
416 ~ExecutionAccess(); | 420 ~ExecutionAccess(); |
417 }; | 421 }; |
418 | 422 |
419 } } // namespace v8::internal | 423 } } // namespace v8::internal |
420 | 424 |
421 #endif // V8_TOP_H_ | 425 #endif // V8_TOP_H_ |
OLD | NEW |