| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 0b2fe16481fb610cae86a51f733f4cd63c188139..c4cc40ca260aa7f65353cb06a16ccbde55c8bf13 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -4449,10 +4449,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);
|
| @@ -4489,10 +4486,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);
|
|
|