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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 } | 626 } |
627 inline Address* js_entry_sp_address() { | 627 inline Address* js_entry_sp_address() { |
628 return &thread_local_top_.js_entry_sp_; | 628 return &thread_local_top_.js_entry_sp_; |
629 } | 629 } |
630 | 630 |
631 // Returns the global object of the current context. It could be | 631 // Returns the global object of the current context. It could be |
632 // a builtin object, or a JS global object. | 632 // a builtin object, or a JS global object. |
633 inline Handle<JSGlobalObject> global_object(); | 633 inline Handle<JSGlobalObject> global_object(); |
634 | 634 |
635 // Returns the global proxy object of the current context. | 635 // Returns the global proxy object of the current context. |
636 JSObject* global_proxy() { | 636 inline Handle<JSObject> global_proxy(); |
637 return context()->global_proxy(); | |
638 } | |
639 | 637 |
640 static int ArchiveSpacePerThread() { return sizeof(ThreadLocalTop); } | 638 static int ArchiveSpacePerThread() { return sizeof(ThreadLocalTop); } |
641 void FreeThreadResources() { thread_local_top_.Free(); } | 639 void FreeThreadResources() { thread_local_top_.Free(); } |
642 | 640 |
643 // This method is called by the api after operations that may throw | 641 // This method is called by the api after operations that may throw |
644 // exceptions. If an exception was thrown and not handled by an external | 642 // exceptions. If an exception was thrown and not handled by an external |
645 // handler the exception is scheduled to be rethrown when we return to running | 643 // handler the exception is scheduled to be rethrown when we return to running |
646 // JavaScript code. If an exception is scheduled true is returned. | 644 // JavaScript code. If an exception is scheduled true is returned. |
647 bool OptionalRescheduleException(bool is_bottom_call); | 645 bool OptionalRescheduleException(bool is_bottom_call); |
648 | 646 |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 | 1586 |
1589 EmbeddedVector<char, 128> filename_; | 1587 EmbeddedVector<char, 128> filename_; |
1590 FILE* file_; | 1588 FILE* file_; |
1591 int scope_depth_; | 1589 int scope_depth_; |
1592 }; | 1590 }; |
1593 | 1591 |
1594 } // namespace internal | 1592 } // namespace internal |
1595 } // namespace v8 | 1593 } // namespace v8 |
1596 | 1594 |
1597 #endif // V8_ISOLATE_H_ | 1595 #endif // V8_ISOLATE_H_ |
OLD | NEW |