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

Side by Side Diff: src/objects.h

Issue 8130002: Make accessors for oddball objects return Oddball* instead of Object*. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: split InitializeThreadLocal into two parts Created 9 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 | « src/messages.cc ('k') | src/objects.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 5198 matching lines...) Expand 10 before | Expand all | Expand 10 after
5209 // Casting. 5209 // Casting.
5210 static inline GlobalObject* cast(Object* obj); 5210 static inline GlobalObject* cast(Object* obj);
5211 5211
5212 // Layout description. 5212 // Layout description.
5213 static const int kBuiltinsOffset = JSObject::kHeaderSize; 5213 static const int kBuiltinsOffset = JSObject::kHeaderSize;
5214 static const int kGlobalContextOffset = kBuiltinsOffset + kPointerSize; 5214 static const int kGlobalContextOffset = kBuiltinsOffset + kPointerSize;
5215 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize; 5215 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize;
5216 static const int kHeaderSize = kGlobalReceiverOffset + kPointerSize; 5216 static const int kHeaderSize = kGlobalReceiverOffset + kPointerSize;
5217 5217
5218 private: 5218 private:
5219 friend class AGCCVersionRequiresThisClassToHaveAFriendSoHereItIs;
5220
5221 DISALLOW_IMPLICIT_CONSTRUCTORS(GlobalObject); 5219 DISALLOW_IMPLICIT_CONSTRUCTORS(GlobalObject);
5222 }; 5220 };
5223 5221
5224 5222
5225 // JavaScript global object. 5223 // JavaScript global object.
5226 class JSGlobalObject: public GlobalObject { 5224 class JSGlobalObject: public GlobalObject {
5227 public: 5225 public:
5228 // Casting. 5226 // Casting.
5229 static inline JSGlobalObject* cast(Object* obj); 5227 static inline JSGlobalObject* cast(Object* obj);
5230 5228
(...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after
7199 DECL_ACCESSORS(property_list, Object) 7197 DECL_ACCESSORS(property_list, Object)
7200 7198
7201 #ifdef DEBUG 7199 #ifdef DEBUG
7202 void TemplateInfoVerify(); 7200 void TemplateInfoVerify();
7203 #endif 7201 #endif
7204 7202
7205 static const int kTagOffset = HeapObject::kHeaderSize; 7203 static const int kTagOffset = HeapObject::kHeaderSize;
7206 static const int kPropertyListOffset = kTagOffset + kPointerSize; 7204 static const int kPropertyListOffset = kTagOffset + kPointerSize;
7207 static const int kHeaderSize = kPropertyListOffset + kPointerSize; 7205 static const int kHeaderSize = kPropertyListOffset + kPointerSize;
7208 protected: 7206 protected:
7209 friend class AGCCVersionRequiresThisClassToHaveAFriendSoHereItIs;
7210 DISALLOW_IMPLICIT_CONSTRUCTORS(TemplateInfo); 7207 DISALLOW_IMPLICIT_CONSTRUCTORS(TemplateInfo);
7211 }; 7208 };
7212 7209
7213 7210
7214 class FunctionTemplateInfo: public TemplateInfo { 7211 class FunctionTemplateInfo: public TemplateInfo {
7215 public: 7212 public:
7216 DECL_ACCESSORS(serial_number, Object) 7213 DECL_ACCESSORS(serial_number, Object)
7217 DECL_ACCESSORS(call_code, Object) 7214 DECL_ACCESSORS(call_code, Object)
7218 DECL_ACCESSORS(property_accessors, Object) 7215 DECL_ACCESSORS(property_accessors, Object)
7219 DECL_ACCESSORS(prototype_template, Object) 7216 DECL_ACCESSORS(prototype_template, Object)
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
7570 } else { 7567 } else {
7571 value &= ~(1 << bit_position); 7568 value &= ~(1 << bit_position);
7572 } 7569 }
7573 return value; 7570 return value;
7574 } 7571 }
7575 }; 7572 };
7576 7573
7577 } } // namespace v8::internal 7574 } } // namespace v8::internal
7578 7575
7579 #endif // V8_OBJECTS_H_ 7576 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698