| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index bf04934605cad83b5fd5280233eac95d96196e47..2cc232c50a75147c2c82bf17619c48ebd8562073 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -5505,6 +5505,13 @@ class Map: public HeapObject {
|
| int NumberOfDescribedProperties(DescriptorFlag which = OWN_DESCRIPTORS,
|
| PropertyAttributes filter = NONE);
|
|
|
| + // Returns the number of slots allocated for the initial properties
|
| + // backing storage for instances of this map.
|
| + int InitialPropertiesLength() {
|
| + return pre_allocated_property_fields() + unused_property_fields() -
|
| + inobject_properties();
|
| + }
|
| +
|
| // Casting.
|
| static inline Map* cast(Object* obj);
|
|
|
|
|