| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 99fc1be90580b28d391221fd55d7355e9c292eee..7a70e4724f24f2054c38fdc00749d084a751a3d7 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -14177,6 +14177,8 @@ static bool ShouldConvertToFastElements(JSObject* object,
|
|
|
| uint32_t dictionary_size = static_cast<uint32_t>(dictionary->Capacity()) *
|
| SeededNumberDictionary::kEntrySize;
|
| +
|
| + // Turn fast if the dictionary only saves 50% space.
|
| return 2 * dictionary_size >= *new_capacity;
|
| }
|
|
|
|
|