| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index b14281a41bbbe9648a6838a292b811264596392b..37343616041a911de310a9d60532fe2f6b37ceaf 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -6762,8 +6762,7 @@ Handle<Map> Map::ShareDescriptor(Handle<Map> map,
|
| if (old_size == 0) {
|
| descriptors = DescriptorArray::Allocate(map->GetIsolate(), 0, 1);
|
| } else {
|
| - int slack = SlackForArraySize(map->is_prototype_map(), old_size,
|
| - kMaxNumberOfDescriptors);
|
| + int slack = SlackForArraySize(old_size, kMaxNumberOfDescriptors);
|
| EnsureDescriptorSlack(map, slack);
|
| descriptors = handle(map->instance_descriptors());
|
| }
|
|
|