OLD | NEW |
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 6206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6217 // deprecated, it is directly returned. Otherwise, the non-deprecated version | 6217 // deprecated, it is directly returned. Otherwise, the non-deprecated version |
6218 // is found by re-transitioning from the root of the transition tree using the | 6218 // is found by re-transitioning from the root of the transition tree using the |
6219 // descriptor array of the map. Returns NULL if no updated map is found. | 6219 // descriptor array of the map. Returns NULL if no updated map is found. |
6220 // This method also applies any pending migrations along the prototype chain. | 6220 // This method also applies any pending migrations along the prototype chain. |
6221 static Handle<Map> CurrentMapForDeprecated(Handle<Map> map); | 6221 static Handle<Map> CurrentMapForDeprecated(Handle<Map> map); |
6222 // Same as above, but does not touch the prototype chain. | 6222 // Same as above, but does not touch the prototype chain. |
6223 static Handle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map); | 6223 static Handle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map); |
6224 | 6224 |
6225 static Handle<Map> RawCopy(Handle<Map> map, int instance_size); | 6225 static Handle<Map> RawCopy(Handle<Map> map, int instance_size); |
6226 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); | 6226 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); |
6227 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); | |
6228 static Handle<Map> CopyDropDescriptors(Handle<Map> map); | 6227 static Handle<Map> CopyDropDescriptors(Handle<Map> map); |
6229 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); | 6228 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); |
6230 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map, | 6229 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map, |
6231 Handle<DescriptorArray> descriptors, | 6230 Handle<DescriptorArray> descriptors, |
6232 TransitionFlag flag, | 6231 TransitionFlag flag, |
6233 Handle<Name> name); | 6232 Handle<Name> name); |
6234 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( | 6233 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( |
6235 DescriptorArray* descriptors, | 6234 DescriptorArray* descriptors, |
6236 TransitionFlag flag, | 6235 TransitionFlag flag, |
6237 Name* name = NULL, | 6236 Name* name = NULL, |
(...skipping 26 matching lines...) Expand all Loading... |
6264 static Handle<Map> CopyNormalized(Handle<Map> map, | 6263 static Handle<Map> CopyNormalized(Handle<Map> map, |
6265 PropertyNormalizationMode mode, | 6264 PropertyNormalizationMode mode, |
6266 NormalizedMapSharingMode sharing); | 6265 NormalizedMapSharingMode sharing); |
6267 | 6266 |
6268 inline void AppendDescriptor(Descriptor* desc, | 6267 inline void AppendDescriptor(Descriptor* desc, |
6269 const DescriptorArray::WhitenessWitness&); | 6268 const DescriptorArray::WhitenessWitness&); |
6270 | 6269 |
6271 // Returns a copy of the map, with all transitions dropped from the | 6270 // Returns a copy of the map, with all transitions dropped from the |
6272 // instance descriptors. | 6271 // instance descriptors. |
6273 static Handle<Map> Copy(Handle<Map> map); | 6272 static Handle<Map> Copy(Handle<Map> map); |
| 6273 static Handle<Map> Create(Handle<JSFunction> constructor, |
| 6274 int extra_inobject_properties); |
6274 MUST_USE_RESULT MaybeObject* Copy(); | 6275 MUST_USE_RESULT MaybeObject* Copy(); |
6275 | 6276 |
6276 // Returns the next free property index (only valid for FAST MODE). | 6277 // Returns the next free property index (only valid for FAST MODE). |
6277 int NextFreePropertyIndex(); | 6278 int NextFreePropertyIndex(); |
6278 | 6279 |
6279 // Returns the number of properties described in instance_descriptors | 6280 // Returns the number of properties described in instance_descriptors |
6280 // filtering out properties with the specified attributes. | 6281 // filtering out properties with the specified attributes. |
6281 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, | 6282 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, |
6282 PropertyAttributes filter = NONE); | 6283 PropertyAttributes filter = NONE); |
6283 | 6284 |
(...skipping 4544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10828 } else { | 10829 } else { |
10829 value &= ~(1 << bit_position); | 10830 value &= ~(1 << bit_position); |
10830 } | 10831 } |
10831 return value; | 10832 return value; |
10832 } | 10833 } |
10833 }; | 10834 }; |
10834 | 10835 |
10835 } } // namespace v8::internal | 10836 } } // namespace v8::internal |
10836 | 10837 |
10837 #endif // V8_OBJECTS_H_ | 10838 #endif // V8_OBJECTS_H_ |
OLD | NEW |