| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
| 6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 THREAD_LOCAL_TOP_ADDRESS(Code*, pending_handler_code) | 607 THREAD_LOCAL_TOP_ADDRESS(Code*, pending_handler_code) |
| 608 THREAD_LOCAL_TOP_ADDRESS(intptr_t, pending_handler_offset) | 608 THREAD_LOCAL_TOP_ADDRESS(intptr_t, pending_handler_offset) |
| 609 THREAD_LOCAL_TOP_ADDRESS(Address, pending_handler_fp) | 609 THREAD_LOCAL_TOP_ADDRESS(Address, pending_handler_fp) |
| 610 THREAD_LOCAL_TOP_ADDRESS(Address, pending_handler_sp) | 610 THREAD_LOCAL_TOP_ADDRESS(Address, pending_handler_sp) |
| 611 | 611 |
| 612 THREAD_LOCAL_TOP_ACCESSOR(bool, external_caught_exception) | 612 THREAD_LOCAL_TOP_ACCESSOR(bool, external_caught_exception) |
| 613 | 613 |
| 614 v8::TryCatch* try_catch_handler() { | 614 v8::TryCatch* try_catch_handler() { |
| 615 return thread_local_top_.try_catch_handler(); | 615 return thread_local_top_.try_catch_handler(); |
| 616 } | 616 } |
| 617 #if DEBUG |
| 618 static v8::TryCatch* next_try_catch(v8::TryCatch* try_catch) { |
| 619 return try_catch->next_; |
| 620 } |
| 621 #endif |
| 617 bool* external_caught_exception_address() { | 622 bool* external_caught_exception_address() { |
| 618 return &thread_local_top_.external_caught_exception_; | 623 return &thread_local_top_.external_caught_exception_; |
| 619 } | 624 } |
| 620 | 625 |
| 621 THREAD_LOCAL_TOP_ADDRESS(Object*, scheduled_exception) | 626 THREAD_LOCAL_TOP_ADDRESS(Object*, scheduled_exception) |
| 622 | 627 |
| 623 inline void clear_pending_message(); | 628 inline void clear_pending_message(); |
| 624 Address pending_message_obj_address() { | 629 Address pending_message_obj_address() { |
| 625 return reinterpret_cast<Address>(&thread_local_top_.pending_message_obj_); | 630 return reinterpret_cast<Address>(&thread_local_top_.pending_message_obj_); |
| 626 } | 631 } |
| (...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1814 | 1819 |
| 1815 EmbeddedVector<char, 128> filename_; | 1820 EmbeddedVector<char, 128> filename_; |
| 1816 FILE* file_; | 1821 FILE* file_; |
| 1817 int scope_depth_; | 1822 int scope_depth_; |
| 1818 }; | 1823 }; |
| 1819 | 1824 |
| 1820 } // namespace internal | 1825 } // namespace internal |
| 1821 } // namespace v8 | 1826 } // namespace v8 |
| 1822 | 1827 |
| 1823 #endif // V8_ISOLATE_H_ | 1828 #endif // V8_ISOLATE_H_ |
| OLD | NEW |