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

Side by Side Diff: src/objects.h

Issue 23680014: revert 16584 for breaking build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/macros.py ('k') | 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 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 9860 matching lines...) Expand 10 before | Expand all | Expand 10 after
9871 inline void set_length(int value); 9871 inline void set_length(int value);
9872 9872
9873 // Following properties use flag bits. 9873 // Following properties use flag bits.
9874 DECL_BOOLEAN_ACCESSORS(hidden_prototype) 9874 DECL_BOOLEAN_ACCESSORS(hidden_prototype)
9875 DECL_BOOLEAN_ACCESSORS(undetectable) 9875 DECL_BOOLEAN_ACCESSORS(undetectable)
9876 // If the bit is set, object instances created by this function 9876 // If the bit is set, object instances created by this function
9877 // requires access check. 9877 // requires access check.
9878 DECL_BOOLEAN_ACCESSORS(needs_access_check) 9878 DECL_BOOLEAN_ACCESSORS(needs_access_check)
9879 DECL_BOOLEAN_ACCESSORS(read_only_prototype) 9879 DECL_BOOLEAN_ACCESSORS(read_only_prototype)
9880 DECL_BOOLEAN_ACCESSORS(remove_prototype) 9880 DECL_BOOLEAN_ACCESSORS(remove_prototype)
9881 DECL_BOOLEAN_ACCESSORS(do_not_cache)
9882 9881
9883 static inline FunctionTemplateInfo* cast(Object* obj); 9882 static inline FunctionTemplateInfo* cast(Object* obj);
9884 9883
9885 // Dispatched behavior. 9884 // Dispatched behavior.
9886 DECLARE_PRINTER(FunctionTemplateInfo) 9885 DECLARE_PRINTER(FunctionTemplateInfo)
9887 DECLARE_VERIFIER(FunctionTemplateInfo) 9886 DECLARE_VERIFIER(FunctionTemplateInfo)
9888 9887
9889 static const int kSerialNumberOffset = TemplateInfo::kHeaderSize; 9888 static const int kSerialNumberOffset = TemplateInfo::kHeaderSize;
9890 static const int kCallCodeOffset = kSerialNumberOffset + kPointerSize; 9889 static const int kCallCodeOffset = kSerialNumberOffset + kPointerSize;
9891 static const int kPrototypeTemplateOffset = 9890 static const int kPrototypeTemplateOffset =
(...skipping 15 matching lines...) Expand all
9907 static const int kLengthOffset = kFlagOffset + kPointerSize; 9906 static const int kLengthOffset = kFlagOffset + kPointerSize;
9908 static const int kSize = kLengthOffset + kPointerSize; 9907 static const int kSize = kLengthOffset + kPointerSize;
9909 9908
9910 private: 9909 private:
9911 // Bit position in the flag, from least significant bit position. 9910 // Bit position in the flag, from least significant bit position.
9912 static const int kHiddenPrototypeBit = 0; 9911 static const int kHiddenPrototypeBit = 0;
9913 static const int kUndetectableBit = 1; 9912 static const int kUndetectableBit = 1;
9914 static const int kNeedsAccessCheckBit = 2; 9913 static const int kNeedsAccessCheckBit = 2;
9915 static const int kReadOnlyPrototypeBit = 3; 9914 static const int kReadOnlyPrototypeBit = 3;
9916 static const int kRemovePrototypeBit = 4; 9915 static const int kRemovePrototypeBit = 4;
9917 static const int kDoNotCacheBit = 5;
9918 9916
9919 DISALLOW_IMPLICIT_CONSTRUCTORS(FunctionTemplateInfo); 9917 DISALLOW_IMPLICIT_CONSTRUCTORS(FunctionTemplateInfo);
9920 }; 9918 };
9921 9919
9922 9920
9923 class ObjectTemplateInfo: public TemplateInfo { 9921 class ObjectTemplateInfo: public TemplateInfo {
9924 public: 9922 public:
9925 DECL_ACCESSORS(constructor, Object) 9923 DECL_ACCESSORS(constructor, Object)
9926 DECL_ACCESSORS(internal_field_count, Object) 9924 DECL_ACCESSORS(internal_field_count, Object)
9927 9925
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
10210 } else { 10208 } else {
10211 value &= ~(1 << bit_position); 10209 value &= ~(1 << bit_position);
10212 } 10210 }
10213 return value; 10211 return value;
10214 } 10212 }
10215 }; 10213 };
10216 10214
10217 } } // namespace v8::internal 10215 } } // namespace v8::internal
10218 10216
10219 #endif // V8_OBJECTS_H_ 10217 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698