OLD | NEW |
---|---|
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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
849 | 849 |
850 | 850 |
851 class AccessorPair; | 851 class AccessorPair; |
852 class AllocationSite; | 852 class AllocationSite; |
853 class AllocationSiteCreationContext; | 853 class AllocationSiteCreationContext; |
854 class AllocationSiteUsageContext; | 854 class AllocationSiteUsageContext; |
855 class DictionaryElementsAccessor; | 855 class DictionaryElementsAccessor; |
856 class ElementsAccessor; | 856 class ElementsAccessor; |
857 class FixedArrayBase; | 857 class FixedArrayBase; |
858 class GlobalObject; | 858 class GlobalObject; |
859 class ObjectVisitor; | 859 class ObjectVisitor; |
Hannes Payer (out of office)
2014/11/06 12:29:46
Can we fix the alphabetic order here. Move ObjectV
Igor Sheludko
2014/11/07 08:03:53
Done.
| |
860 class LayoutDescriptor; | |
860 class LookupIterator; | 861 class LookupIterator; |
861 class StringStream; | 862 class StringStream; |
862 class TypeFeedbackVector; | 863 class TypeFeedbackVector; |
863 class WeakCell; | 864 class WeakCell; |
864 // We cannot just say "class HeapType;" if it is created from a template... =8-? | 865 // We cannot just say "class HeapType;" if it is created from a template... =8-? |
865 template<class> class TypeImpl; | 866 template<class> class TypeImpl; |
866 struct HeapTypeConfig; | 867 struct HeapTypeConfig; |
867 typedef TypeImpl<HeapTypeConfig> HeapType; | 868 typedef TypeImpl<HeapTypeConfig> HeapType; |
868 | 869 |
869 | 870 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
925 V(FixedFloat32Array) \ | 926 V(FixedFloat32Array) \ |
926 V(FixedFloat64Array) \ | 927 V(FixedFloat64Array) \ |
927 V(FixedUint8ClampedArray) \ | 928 V(FixedUint8ClampedArray) \ |
928 V(ByteArray) \ | 929 V(ByteArray) \ |
929 V(FreeSpace) \ | 930 V(FreeSpace) \ |
930 V(JSReceiver) \ | 931 V(JSReceiver) \ |
931 V(JSObject) \ | 932 V(JSObject) \ |
932 V(JSContextExtensionObject) \ | 933 V(JSContextExtensionObject) \ |
933 V(JSGeneratorObject) \ | 934 V(JSGeneratorObject) \ |
934 V(JSModule) \ | 935 V(JSModule) \ |
936 V(LayoutDescriptor) \ | |
935 V(Map) \ | 937 V(Map) \ |
936 V(DescriptorArray) \ | 938 V(DescriptorArray) \ |
937 V(TransitionArray) \ | 939 V(TransitionArray) \ |
938 V(TypeFeedbackVector) \ | 940 V(TypeFeedbackVector) \ |
939 V(DeoptimizationInputData) \ | 941 V(DeoptimizationInputData) \ |
940 V(DeoptimizationOutputData) \ | 942 V(DeoptimizationOutputData) \ |
941 V(DependentCode) \ | 943 V(DependentCode) \ |
942 V(FixedArray) \ | 944 V(FixedArray) \ |
943 V(FixedDoubleArray) \ | 945 V(FixedDoubleArray) \ |
944 V(ConstantPoolArray) \ | 946 V(ConstantPoolArray) \ |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2052 | 2054 |
2053 // Convert and update the elements backing store to be a | 2055 // Convert and update the elements backing store to be a |
2054 // SeededNumberDictionary dictionary. Returns the backing after conversion. | 2056 // SeededNumberDictionary dictionary. Returns the backing after conversion. |
2055 static Handle<SeededNumberDictionary> NormalizeElements( | 2057 static Handle<SeededNumberDictionary> NormalizeElements( |
2056 Handle<JSObject> object); | 2058 Handle<JSObject> object); |
2057 | 2059 |
2058 // Transform slow named properties to fast variants. | 2060 // Transform slow named properties to fast variants. |
2059 static void MigrateSlowToFast(Handle<JSObject> object, | 2061 static void MigrateSlowToFast(Handle<JSObject> object, |
2060 int unused_property_fields); | 2062 int unused_property_fields); |
2061 | 2063 |
2064 inline bool IsUnboxedDoubleField(FieldIndex index); | |
2065 | |
2062 // Access fast-case object properties at index. | 2066 // Access fast-case object properties at index. |
2063 static Handle<Object> FastPropertyAt(Handle<JSObject> object, | 2067 static Handle<Object> FastPropertyAt(Handle<JSObject> object, |
2064 Representation representation, | 2068 Representation representation, |
2065 FieldIndex index); | 2069 FieldIndex index); |
2066 inline Object* RawFastPropertyAt(FieldIndex index); | 2070 inline Object* RawFastPropertyAt(FieldIndex index); |
2071 inline double RawFastDoublePropertyAt(FieldIndex index); | |
2072 | |
2067 inline void FastPropertyAtPut(FieldIndex index, Object* value); | 2073 inline void FastPropertyAtPut(FieldIndex index, Object* value); |
2074 inline void RawFastPropertyAtPut(FieldIndex index, Object* value); | |
2075 inline void RawFastDoublePropertyAtPut(FieldIndex index, double value); | |
2068 void WriteToField(int descriptor, Object* value); | 2076 void WriteToField(int descriptor, Object* value); |
2069 | 2077 |
2070 // Access to in object properties. | 2078 // Access to in object properties. |
2071 inline int GetInObjectPropertyOffset(int index); | 2079 inline int GetInObjectPropertyOffset(int index); |
2072 inline Object* InObjectPropertyAt(int index); | 2080 inline Object* InObjectPropertyAt(int index); |
2073 inline Object* InObjectPropertyAtPut(int index, | 2081 inline Object* InObjectPropertyAtPut(int index, |
2074 Object* value, | 2082 Object* value, |
2075 WriteBarrierMode mode | 2083 WriteBarrierMode mode |
2076 = UPDATE_WRITE_BARRIER); | 2084 = UPDATE_WRITE_BARRIER); |
2077 | 2085 |
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3121 } | 3129 } |
3122 | 3130 |
3123 static int ToValueIndex(int descriptor_number) { | 3131 static int ToValueIndex(int descriptor_number) { |
3124 return kFirstIndex + | 3132 return kFirstIndex + |
3125 (descriptor_number * kDescriptorSize) + | 3133 (descriptor_number * kDescriptorSize) + |
3126 kDescriptorValue; | 3134 kDescriptorValue; |
3127 } | 3135 } |
3128 | 3136 |
3129 // Transfer a complete descriptor from the src descriptor array to this | 3137 // Transfer a complete descriptor from the src descriptor array to this |
3130 // descriptor array. | 3138 // descriptor array. |
3131 void CopyFrom(int index, | 3139 void CopyFrom(int index, DescriptorArray* src, const WhitenessWitness&); |
3132 DescriptorArray* src, | |
3133 const WhitenessWitness&); | |
3134 | 3140 |
3135 inline void Set(int descriptor_number, | 3141 inline void Set(int descriptor_number, |
3136 Descriptor* desc, | 3142 Descriptor* desc, |
3137 const WhitenessWitness&); | 3143 const WhitenessWitness&); |
3138 | 3144 |
3139 // Swap first and second descriptor. | 3145 // Swap first and second descriptor. |
3140 inline void SwapSortedKeys(int first, int second); | 3146 inline void SwapSortedKeys(int first, int second); |
3141 | 3147 |
3142 DISALLOW_IMPLICIT_CONSTRUCTORS(DescriptorArray); | 3148 DISALLOW_IMPLICIT_CONSTRUCTORS(DescriptorArray); |
3143 }; | 3149 }; |
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4806 elementType scalar); \ | 4812 elementType scalar); \ |
4807 static inline elementType defaultValue(); \ | 4813 static inline elementType defaultValue(); \ |
4808 }; \ | 4814 }; \ |
4809 \ | 4815 \ |
4810 typedef FixedTypedArray<Type##ArrayTraits> Fixed##Type##Array; | 4816 typedef FixedTypedArray<Type##ArrayTraits> Fixed##Type##Array; |
4811 | 4817 |
4812 TYPED_ARRAYS(FIXED_TYPED_ARRAY_TRAITS) | 4818 TYPED_ARRAYS(FIXED_TYPED_ARRAY_TRAITS) |
4813 | 4819 |
4814 #undef FIXED_TYPED_ARRAY_TRAITS | 4820 #undef FIXED_TYPED_ARRAY_TRAITS |
4815 | 4821 |
4822 | |
4816 // DeoptimizationInputData is a fixed array used to hold the deoptimization | 4823 // DeoptimizationInputData is a fixed array used to hold the deoptimization |
4817 // data for code generated by the Hydrogen/Lithium compiler. It also | 4824 // data for code generated by the Hydrogen/Lithium compiler. It also |
4818 // contains information about functions that were inlined. If N different | 4825 // contains information about functions that were inlined. If N different |
4819 // functions were inlined then first N elements of the literal array will | 4826 // functions were inlined then first N elements of the literal array will |
4820 // contain these functions. | 4827 // contain these functions. |
4821 // | 4828 // |
4822 // It can be empty. | 4829 // It can be empty. |
4823 class DeoptimizationInputData: public FixedArray { | 4830 class DeoptimizationInputData: public FixedArray { |
4824 public: | 4831 public: |
4825 // Layout description. Indices in the array. | 4832 // Layout description. Indices in the array. |
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5896 inline bool has_code_cache(); | 5903 inline bool has_code_cache(); |
5897 | 5904 |
5898 // [prototype]: implicit prototype object. | 5905 // [prototype]: implicit prototype object. |
5899 DECL_ACCESSORS(prototype, Object) | 5906 DECL_ACCESSORS(prototype, Object) |
5900 | 5907 |
5901 // [constructor]: points back to the function responsible for this map. | 5908 // [constructor]: points back to the function responsible for this map. |
5902 DECL_ACCESSORS(constructor, Object) | 5909 DECL_ACCESSORS(constructor, Object) |
5903 | 5910 |
5904 // [instance descriptors]: describes the object. | 5911 // [instance descriptors]: describes the object. |
5905 DECL_ACCESSORS(instance_descriptors, DescriptorArray) | 5912 DECL_ACCESSORS(instance_descriptors, DescriptorArray) |
5906 inline void InitializeDescriptors(DescriptorArray* descriptors); | 5913 |
5914 // [layout descriptor]: describes the object layout. | |
5915 DECL_ACCESSORS(layout_descriptor, LayoutDescriptor) | |
5916 // |layout descriptor| accessor which can be used from GC. | |
5917 inline LayoutDescriptor* layout_descriptor_gc_safe(); | |
5918 | |
5919 // |layout descriptor| accessor that returns a handle. | |
5920 inline Handle<LayoutDescriptor> GetLayoutDescriptor(); | |
5921 | |
5922 inline void UpdateDescriptors(DescriptorArray* descriptors, | |
5923 LayoutDescriptor* layout_descriptor); | |
5924 inline void InitializeDescriptors(DescriptorArray* descriptors, | |
5925 LayoutDescriptor* layout_descriptor); | |
5907 | 5926 |
5908 // [stub cache]: contains stubs compiled for this map. | 5927 // [stub cache]: contains stubs compiled for this map. |
5909 DECL_ACCESSORS(code_cache, Object) | 5928 DECL_ACCESSORS(code_cache, Object) |
5910 | 5929 |
5911 // [dependent code]: list of optimized codes that weakly embed this map. | 5930 // [dependent code]: list of optimized codes that weakly embed this map. |
5912 DECL_ACCESSORS(dependent_code, DependentCode) | 5931 DECL_ACCESSORS(dependent_code, DependentCode) |
5913 | 5932 |
5914 // [back pointer]: points back to the parent map from which a transition | 5933 // [back pointer]: points back to the parent map from which a transition |
5915 // leads to this map. The field overlaps with prototype transitions and the | 5934 // leads to this map. The field overlaps with prototype transitions and the |
5916 // back pointer will be moved into the prototype transitions array if | 5935 // back pointer will be moved into the prototype transitions array if |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6224 static const int kPrototypeOffset = kBitField3Offset + kPointerSize; | 6243 static const int kPrototypeOffset = kBitField3Offset + kPointerSize; |
6225 static const int kConstructorOffset = kPrototypeOffset + kPointerSize; | 6244 static const int kConstructorOffset = kPrototypeOffset + kPointerSize; |
6226 // Storage for the transition array is overloaded to directly contain a back | 6245 // Storage for the transition array is overloaded to directly contain a back |
6227 // pointer if unused. When the map has transitions, the back pointer is | 6246 // pointer if unused. When the map has transitions, the back pointer is |
6228 // transferred to the transition array and accessed through an extra | 6247 // transferred to the transition array and accessed through an extra |
6229 // indirection. | 6248 // indirection. |
6230 static const int kTransitionsOrBackPointerOffset = | 6249 static const int kTransitionsOrBackPointerOffset = |
6231 kConstructorOffset + kPointerSize; | 6250 kConstructorOffset + kPointerSize; |
6232 static const int kDescriptorsOffset = | 6251 static const int kDescriptorsOffset = |
6233 kTransitionsOrBackPointerOffset + kPointerSize; | 6252 kTransitionsOrBackPointerOffset + kPointerSize; |
6253 #if V8_DOUBLE_FIELDS_UNBOXING | |
6254 static const int kLayoutDecriptorOffset = kDescriptorsOffset + kPointerSize; | |
6255 static const int kCodeCacheOffset = kLayoutDecriptorOffset + kPointerSize; | |
6256 #else | |
6257 static const int kLayoutDecriptorOffset = 1; // Must not be ever accessed. | |
6234 static const int kCodeCacheOffset = kDescriptorsOffset + kPointerSize; | 6258 static const int kCodeCacheOffset = kDescriptorsOffset + kPointerSize; |
6259 #endif | |
6235 static const int kDependentCodeOffset = kCodeCacheOffset + kPointerSize; | 6260 static const int kDependentCodeOffset = kCodeCacheOffset + kPointerSize; |
6236 static const int kSize = kDependentCodeOffset + kPointerSize; | 6261 static const int kSize = kDependentCodeOffset + kPointerSize; |
6237 | 6262 |
6238 // Layout of pointer fields. Heap iteration code relies on them | 6263 // Layout of pointer fields. Heap iteration code relies on them |
6239 // being continuously allocated. | 6264 // being continuously allocated. |
6240 static const int kPointerFieldsBeginOffset = Map::kPrototypeOffset; | 6265 static const int kPointerFieldsBeginOffset = Map::kPrototypeOffset; |
6241 static const int kPointerFieldsEndOffset = kSize; | 6266 static const int kPointerFieldsEndOffset = kSize; |
6242 | 6267 |
6243 // Byte offsets within kInstanceSizesOffset. | 6268 // Byte offsets within kInstanceSizesOffset. |
6244 static const int kInstanceSizeOffset = kInstanceSizesOffset + 0; | 6269 static const int kInstanceSizeOffset = kInstanceSizesOffset + 0; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6302 typedef FixedBodyDescriptor<kPointerFieldsBeginOffset, | 6327 typedef FixedBodyDescriptor<kPointerFieldsBeginOffset, |
6303 kPointerFieldsEndOffset, | 6328 kPointerFieldsEndOffset, |
6304 kSize> BodyDescriptor; | 6329 kSize> BodyDescriptor; |
6305 | 6330 |
6306 // Compares this map to another to see if they describe equivalent objects. | 6331 // Compares this map to another to see if they describe equivalent objects. |
6307 // If |mode| is set to CLEAR_INOBJECT_PROPERTIES, |other| is treated as if | 6332 // If |mode| is set to CLEAR_INOBJECT_PROPERTIES, |other| is treated as if |
6308 // it had exactly zero inobject properties. | 6333 // it had exactly zero inobject properties. |
6309 // The "shared" flags of both this map and |other| are ignored. | 6334 // The "shared" flags of both this map and |other| are ignored. |
6310 bool EquivalentToForNormalization(Map* other, PropertyNormalizationMode mode); | 6335 bool EquivalentToForNormalization(Map* other, PropertyNormalizationMode mode); |
6311 | 6336 |
6337 // Returns true if given field is unboxed double. | |
6338 inline bool IsUnboxedDoubleField(FieldIndex index); | |
6339 | |
6312 private: | 6340 private: |
6313 static void ConnectElementsTransition(Handle<Map> parent, Handle<Map> child); | 6341 static void ConnectElementsTransition(Handle<Map> parent, Handle<Map> child); |
6314 static void ConnectTransition(Handle<Map> parent, Handle<Map> child, | 6342 static void ConnectTransition(Handle<Map> parent, Handle<Map> child, |
6315 Handle<Name> name, SimpleTransitionFlag flag); | 6343 Handle<Name> name, SimpleTransitionFlag flag); |
6316 | 6344 |
6317 bool EquivalentToForTransition(Map* other); | 6345 bool EquivalentToForTransition(Map* other); |
6318 static Handle<Map> RawCopy(Handle<Map> map, int instance_size); | 6346 static Handle<Map> RawCopy(Handle<Map> map, int instance_size); |
6319 static Handle<Map> ShareDescriptor(Handle<Map> map, | 6347 static Handle<Map> ShareDescriptor(Handle<Map> map, |
6320 Handle<DescriptorArray> descriptors, | 6348 Handle<DescriptorArray> descriptors, |
6321 Descriptor* descriptor); | 6349 Descriptor* descriptor); |
6322 static Handle<Map> CopyInstallDescriptors( | 6350 static Handle<Map> CopyInstallDescriptors( |
6323 Handle<Map> map, | 6351 Handle<Map> map, int new_descriptor, Handle<DescriptorArray> descriptors, |
6324 int new_descriptor, | 6352 Handle<LayoutDescriptor> layout_descriptor); |
6325 Handle<DescriptorArray> descriptors); | |
6326 static Handle<Map> CopyAddDescriptor(Handle<Map> map, | 6353 static Handle<Map> CopyAddDescriptor(Handle<Map> map, |
6327 Descriptor* descriptor, | 6354 Descriptor* descriptor, |
6328 TransitionFlag flag); | 6355 TransitionFlag flag); |
6329 static Handle<Map> CopyReplaceDescriptors( | 6356 static Handle<Map> CopyReplaceDescriptors( |
6330 Handle<Map> map, | 6357 Handle<Map> map, Handle<DescriptorArray> descriptors, |
6331 Handle<DescriptorArray> descriptors, | 6358 Handle<LayoutDescriptor> layout_descriptor, TransitionFlag flag, |
6332 TransitionFlag flag, | |
6333 MaybeHandle<Name> maybe_name, | 6359 MaybeHandle<Name> maybe_name, |
6334 SimpleTransitionFlag simple_flag = FULL_TRANSITION); | 6360 SimpleTransitionFlag simple_flag = FULL_TRANSITION); |
6335 static Handle<Map> CopyReplaceDescriptor(Handle<Map> map, | 6361 static Handle<Map> CopyReplaceDescriptor(Handle<Map> map, |
6336 Handle<DescriptorArray> descriptors, | 6362 Handle<DescriptorArray> descriptors, |
6337 Descriptor* descriptor, | 6363 Descriptor* descriptor, |
6338 int index, | 6364 int index, |
6339 TransitionFlag flag); | 6365 TransitionFlag flag); |
6340 | 6366 |
6341 static Handle<Map> CopyNormalized(Handle<Map> map, | 6367 static Handle<Map> CopyNormalized(Handle<Map> map, |
6342 PropertyNormalizationMode mode); | 6368 PropertyNormalizationMode mode); |
6343 | 6369 |
6344 // Fires when the layout of an object with a leaf map changes. | 6370 // Fires when the layout of an object with a leaf map changes. |
6345 // This includes adding transitions to the leaf map or changing | 6371 // This includes adding transitions to the leaf map or changing |
6346 // the descriptor array. | 6372 // the descriptor array. |
6347 inline void NotifyLeafMapLayoutChange(); | 6373 inline void NotifyLeafMapLayoutChange(); |
6348 | 6374 |
6349 static Handle<Map> TransitionElementsToSlow(Handle<Map> object, | 6375 static Handle<Map> TransitionElementsToSlow(Handle<Map> object, |
6350 ElementsKind to_kind); | 6376 ElementsKind to_kind); |
6351 | 6377 |
6352 // Zaps the contents of backing data structures. Note that the | 6378 // Zaps the contents of backing data structures. Note that the |
6353 // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects | 6379 // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects |
6354 // holding weak references when incremental marking is used, because it also | 6380 // holding weak references when incremental marking is used, because it also |
6355 // iterates over objects that are otherwise unreachable. | 6381 // iterates over objects that are otherwise unreachable. |
6356 // In general we only want to call these functions in release mode when | 6382 // In general we only want to call these functions in release mode when |
6357 // heap verification is turned on. | 6383 // heap verification is turned on. |
6358 void ZapPrototypeTransitions(); | 6384 void ZapPrototypeTransitions(); |
6359 void ZapTransitions(); | 6385 void ZapTransitions(); |
6360 | 6386 |
6361 void DeprecateTransitionTree(); | 6387 void DeprecateTransitionTree(); |
6362 void DeprecateTarget(Name* key, DescriptorArray* new_descriptors); | 6388 void DeprecateTarget(Handle<Name> key, |
6389 Handle<DescriptorArray> new_descriptors, | |
6390 Handle<LayoutDescriptor> new_layout_descriptor); | |
6363 | 6391 |
6364 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); | 6392 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); |
6365 | 6393 |
6366 void UpdateFieldType(int descriptor_number, Handle<Name> name, | 6394 void UpdateFieldType(int descriptor_number, Handle<Name> name, |
6367 Handle<HeapType> new_type); | 6395 Handle<HeapType> new_type); |
6368 | 6396 |
6369 void PrintGeneralization(FILE* file, | 6397 void PrintGeneralization(FILE* file, |
6370 const char* reason, | 6398 const char* reason, |
6371 int modify_index, | 6399 int modify_index, |
6372 int split, | 6400 int split, |
(...skipping 10 matching lines...) Expand all Loading... | |
6383 | 6411 |
6384 static Handle<Map> GetPrototypeTransition(Handle<Map> map, | 6412 static Handle<Map> GetPrototypeTransition(Handle<Map> map, |
6385 Handle<Object> prototype); | 6413 Handle<Object> prototype); |
6386 static Handle<Map> PutPrototypeTransition(Handle<Map> map, | 6414 static Handle<Map> PutPrototypeTransition(Handle<Map> map, |
6387 Handle<Object> prototype, | 6415 Handle<Object> prototype, |
6388 Handle<Map> target_map); | 6416 Handle<Map> target_map); |
6389 | 6417 |
6390 static const int kFastPropertiesSoftLimit = 12; | 6418 static const int kFastPropertiesSoftLimit = 12; |
6391 static const int kMaxFastProperties = 128; | 6419 static const int kMaxFastProperties = 128; |
6392 | 6420 |
6421 friend class TestAccessor; | |
Hannes Payer (out of office)
2014/11/06 12:29:46
Uff, do we really have to add test dependencies to
Igor Sheludko
2014/11/07 08:03:53
Done.
| |
6393 DISALLOW_IMPLICIT_CONSTRUCTORS(Map); | 6422 DISALLOW_IMPLICIT_CONSTRUCTORS(Map); |
6394 }; | 6423 }; |
6395 | 6424 |
6396 | 6425 |
6397 // An abstract superclass, a marker class really, for simple structure classes. | 6426 // An abstract superclass, a marker class really, for simple structure classes. |
6398 // It doesn't carry much functionality but allows struct classes to be | 6427 // It doesn't carry much functionality but allows struct classes to be |
6399 // identified in the type system. | 6428 // identified in the type system. |
6400 class Struct: public HeapObject { | 6429 class Struct: public HeapObject { |
6401 public: | 6430 public: |
6402 inline void InitializeBody(int object_size); | 6431 inline void InitializeBody(int object_size); |
(...skipping 4505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10908 } else { | 10937 } else { |
10909 value &= ~(1 << bit_position); | 10938 value &= ~(1 << bit_position); |
10910 } | 10939 } |
10911 return value; | 10940 return value; |
10912 } | 10941 } |
10913 }; | 10942 }; |
10914 | 10943 |
10915 } } // namespace v8::internal | 10944 } } // namespace v8::internal |
10916 | 10945 |
10917 #endif // V8_OBJECTS_H_ | 10946 #endif // V8_OBJECTS_H_ |
OLD | NEW |