Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: src/isolate.h

Issue 1316943002: Move (uppercase) JS builtins from js builtins object to native context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove Isolate::js_builtins_object Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698