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 | |
177 static Object* scheduled_exception() { | 173 static Object* scheduled_exception() { |
178 ASSERT(has_scheduled_exception()); | 174 ASSERT(has_scheduled_exception()); |
179 return thread_local_.scheduled_exception_; | 175 return thread_local_.scheduled_exception_; |
180 } | 176 } |
181 static bool has_scheduled_exception() { | 177 static bool has_scheduled_exception() { |
182 return !thread_local_.scheduled_exception_->IsTheHole(); | 178 return !thread_local_.scheduled_exception_->IsTheHole(); |
183 } | 179 } |
184 static void clear_scheduled_exception() { | 180 static void clear_scheduled_exception() { |
185 thread_local_.scheduled_exception_ = Heap::the_hole_value(); | 181 thread_local_.scheduled_exception_ = Heap::the_hole_value(); |
186 } | 182 } |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 412 |
417 class ExecutionAccess BASE_EMBEDDED { | 413 class ExecutionAccess BASE_EMBEDDED { |
418 public: | 414 public: |
419 ExecutionAccess(); | 415 ExecutionAccess(); |
420 ~ExecutionAccess(); | 416 ~ExecutionAccess(); |
421 }; | 417 }; |
422 | 418 |
423 } } // namespace v8::internal | 419 } } // namespace v8::internal |
424 | 420 |
425 #endif // V8_TOP_H_ | 421 #endif // V8_TOP_H_ |
OLD | NEW |