| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 8420069b2627e75384591bb81295871029570efe..18f10c6c1b06646001855cd77035331f7209552d 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -5439,6 +5439,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);
|
|
|
|
|