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 5458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5469 MUST_USE_RESULT MaybeObject* Copy(); | 5469 MUST_USE_RESULT MaybeObject* Copy(); |
5470 | 5470 |
5471 // Returns the next free property index (only valid for FAST MODE). | 5471 // Returns the next free property index (only valid for FAST MODE). |
5472 int NextFreePropertyIndex(); | 5472 int NextFreePropertyIndex(); |
5473 | 5473 |
5474 // Returns the number of properties described in instance_descriptors | 5474 // Returns the number of properties described in instance_descriptors |
5475 // filtering out properties with the specified attributes. | 5475 // filtering out properties with the specified attributes. |
5476 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, | 5476 int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS, |
5477 PropertyAttributes filter = NONE); | 5477 PropertyAttributes filter = NONE); |
5478 | 5478 |
5479 // Returns the number of slots allocated for the initial properties | |
5480 // backing storage for instances of this map. | |
5481 int InitialPropertiesLength() { | |
5482 return pre_allocated_property_fields() + unused_property_fields() - | |
5483 inobject_properties(); | |
5484 } | |
5485 | |
5486 // Casting. | 5479 // Casting. |
5487 static inline Map* cast(Object* obj); | 5480 static inline Map* cast(Object* obj); |
5488 | 5481 |
5489 // Locate an accessor in the instance descriptor. | 5482 // Locate an accessor in the instance descriptor. |
5490 AccessorDescriptor* FindAccessor(Name* name); | 5483 AccessorDescriptor* FindAccessor(Name* name); |
5491 | 5484 |
5492 // Code cache operations. | 5485 // Code cache operations. |
5493 | 5486 |
5494 // Clears the code cache. | 5487 // Clears the code cache. |
5495 inline void ClearCodeCache(Heap* heap); | 5488 inline void ClearCodeCache(Heap* heap); |
(...skipping 4195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9691 } else { | 9684 } else { |
9692 value &= ~(1 << bit_position); | 9685 value &= ~(1 << bit_position); |
9693 } | 9686 } |
9694 return value; | 9687 return value; |
9695 } | 9688 } |
9696 }; | 9689 }; |
9697 | 9690 |
9698 } } // namespace v8::internal | 9691 } } // namespace v8::internal |
9699 | 9692 |
9700 #endif // V8_OBJECTS_H_ | 9693 #endif // V8_OBJECTS_H_ |
OLD | NEW |