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 <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 // a builtin object, or a JS global object. | 651 // a builtin object, or a JS global object. |
652 Handle<GlobalObject> global_object() { | 652 Handle<GlobalObject> global_object() { |
653 return Handle<GlobalObject>(context()->global_object()); | 653 return Handle<GlobalObject>(context()->global_object()); |
654 } | 654 } |
655 | 655 |
656 // Returns the global proxy object of the current context. | 656 // Returns the global proxy object of the current context. |
657 JSObject* global_proxy() { | 657 JSObject* global_proxy() { |
658 return context()->global_proxy(); | 658 return context()->global_proxy(); |
659 } | 659 } |
660 | 660 |
661 Handle<JSBuiltinsObject> js_builtins_object() { | |
662 return Handle<JSBuiltinsObject>(thread_local_top_.context_->builtins()); | |
663 } | |
664 | |
665 static int ArchiveSpacePerThread() { return sizeof(ThreadLocalTop); } | 661 static int ArchiveSpacePerThread() { return sizeof(ThreadLocalTop); } |
666 void FreeThreadResources() { thread_local_top_.Free(); } | 662 void FreeThreadResources() { thread_local_top_.Free(); } |
667 | 663 |
668 // This method is called by the api after operations that may throw | 664 // This method is called by the api after operations that may throw |
669 // exceptions. If an exception was thrown and not handled by an external | 665 // exceptions. If an exception was thrown and not handled by an external |
670 // handler the exception is scheduled to be rethrown when we return to running | 666 // handler the exception is scheduled to be rethrown when we return to running |
671 // JavaScript code. If an exception is scheduled true is returned. | 667 // JavaScript code. If an exception is scheduled true is returned. |
672 bool OptionalRescheduleException(bool is_bottom_call); | 668 bool OptionalRescheduleException(bool is_bottom_call); |
673 | 669 |
674 // Push and pop a promise and the current try-catch handler. | 670 // Push and pop a promise and the current try-catch handler. |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1593 } | 1589 } |
1594 | 1590 |
1595 EmbeddedVector<char, 128> filename_; | 1591 EmbeddedVector<char, 128> filename_; |
1596 FILE* file_; | 1592 FILE* file_; |
1597 int scope_depth_; | 1593 int scope_depth_; |
1598 }; | 1594 }; |
1599 | 1595 |
1600 } } // namespace v8::internal | 1596 } } // namespace v8::internal |
1601 | 1597 |
1602 #endif // V8_ISOLATE_H_ | 1598 #endif // V8_ISOLATE_H_ |
OLD | NEW |