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

Side by Side Diff: src/objects.h

Issue 8097: Fix issue 124 by computing the receiver correctly when... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 | « no previous file | src/objects-inl.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after
2777 public: 2777 public:
2778 // [builtins]: the object holding the runtime routines written in JS. 2778 // [builtins]: the object holding the runtime routines written in JS.
2779 DECL_ACCESSORS(builtins, JSBuiltinsObject) 2779 DECL_ACCESSORS(builtins, JSBuiltinsObject)
2780 2780
2781 // [global context]: the global context corresponding to this global objet. 2781 // [global context]: the global context corresponding to this global objet.
2782 DECL_ACCESSORS(global_context, Context) 2782 DECL_ACCESSORS(global_context, Context)
2783 2783
2784 // [global receiver]: the global receiver object of the context 2784 // [global receiver]: the global receiver object of the context
2785 DECL_ACCESSORS(global_receiver, JSObject) 2785 DECL_ACCESSORS(global_receiver, JSObject)
2786 2786
2787 // Casting.
2788 static inline GlobalObject* cast(Object* obj);
2789
2787 // Layout description. 2790 // Layout description.
2788 static const int kBuiltinsOffset = JSObject::kHeaderSize; 2791 static const int kBuiltinsOffset = JSObject::kHeaderSize;
2789 static const int kGlobalContextOffset = kBuiltinsOffset + kPointerSize; 2792 static const int kGlobalContextOffset = kBuiltinsOffset + kPointerSize;
2790 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize; 2793 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize;
2791 static const int kHeaderSize = kGlobalReceiverOffset + kPointerSize; 2794 static const int kHeaderSize = kGlobalReceiverOffset + kPointerSize;
2792 2795
2793 private: 2796 private:
2794 friend class AGCCVersionRequiresThisClassToHaveAFriendSoHereItIs; 2797 friend class AGCCVersionRequiresThisClassToHaveAFriendSoHereItIs;
2795 2798
2796 DISALLOW_IMPLICIT_CONSTRUCTORS(GlobalObject); 2799 DISALLOW_IMPLICIT_CONSTRUCTORS(GlobalObject);
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
4054 } else { 4057 } else {
4055 value &= ~(1 << bit_position); 4058 value &= ~(1 << bit_position);
4056 } 4059 }
4057 return value; 4060 return value;
4058 } 4061 }
4059 }; 4062 };
4060 4063
4061 } } // namespace v8::internal 4064 } } // namespace v8::internal
4062 4065
4063 #endif // V8_OBJECTS_H_ 4066 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698