| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 50b5a34baa74ebd181dda5d26f5b909a08bae02f..9ef7a046d7a1fa65f9e167fc49e612ecf420b19d 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -4300,10 +4300,7 @@ MaybeObject* Heap::AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure) {
|
| ASSERT(map->instance_type() != JS_BUILTINS_OBJECT_TYPE);
|
|
|
| // Allocate the backing storage for the properties.
|
| - int prop_size =
|
| - map->pre_allocated_property_fields() +
|
| - map->unused_property_fields() -
|
| - map->inobject_properties();
|
| + int prop_size = map->InitialPropertiesLength();
|
| ASSERT(prop_size >= 0);
|
| Object* properties;
|
| { MaybeObject* maybe_properties = AllocateFixedArray(prop_size, pretenure);
|
| @@ -4340,10 +4337,7 @@ MaybeObject* Heap::AllocateJSObjectFromMapWithAllocationSite(Map* map,
|
| ASSERT(map->instance_type() != JS_BUILTINS_OBJECT_TYPE);
|
|
|
| // Allocate the backing storage for the properties.
|
| - int prop_size =
|
| - map->pre_allocated_property_fields() +
|
| - map->unused_property_fields() -
|
| - map->inobject_properties();
|
| + int prop_size = map->InitialPropertiesLength();
|
| ASSERT(prop_size >= 0);
|
| Object* properties;
|
| { MaybeObject* maybe_properties = AllocateFixedArray(prop_size);
|
|
|