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

Side by Side Diff: src/isolate.h

Issue 10832365: Rename Context::global to Context::global_object, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/isolate.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 // 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 } 637 }
638 inline Address* js_entry_sp_address() { 638 inline Address* js_entry_sp_address() {
639 return &thread_local_top_.js_entry_sp_; 639 return &thread_local_top_.js_entry_sp_;
640 } 640 }
641 641
642 // Generated code scratch locations. 642 // Generated code scratch locations.
643 void* formal_count_address() { return &thread_local_top_.formal_count_; } 643 void* formal_count_address() { return &thread_local_top_.formal_count_; }
644 644
645 // Returns the global object of the current context. It could be 645 // Returns the global object of the current context. It could be
646 // a builtin object, or a JS global object. 646 // a builtin object, or a JS global object.
647 Handle<GlobalObject> global() { 647 Handle<GlobalObject> global_object() {
648 return Handle<GlobalObject>(context()->global()); 648 return Handle<GlobalObject>(context()->global_object());
649 } 649 }
650 650
651 // Returns the global proxy object of the current context. 651 // Returns the global proxy object of the current context.
652 Object* global_proxy() { 652 Object* global_proxy() {
653 return context()->global_proxy(); 653 return context()->global_proxy();
654 } 654 }
655 655
656 Handle<JSBuiltinsObject> js_builtins_object() { 656 Handle<JSBuiltinsObject> js_builtins_object() {
657 return Handle<JSBuiltinsObject>(thread_local_top_.context_->builtins()); 657 return Handle<JSBuiltinsObject>(thread_local_top_.context_->builtins());
658 } 658 }
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 1442
1443 // Mark the native context with out of memory. 1443 // Mark the native context with out of memory.
1444 inline void Context::mark_out_of_memory() { 1444 inline void Context::mark_out_of_memory() {
1445 native_context()->set_out_of_memory(HEAP->true_value()); 1445 native_context()->set_out_of_memory(HEAP->true_value());
1446 } 1446 }
1447 1447
1448 1448
1449 } } // namespace v8::internal 1449 } } // namespace v8::internal
1450 1450
1451 #endif // V8_ISOLATE_H_ 1451 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698