| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 1abe0c1dd4c219e63e01ca131b582e4df8c731de..cc264f6aef251d4680e4bb4b1621353a74f18483 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -3260,15 +3260,14 @@ DescriptorArray::WhitenessWitness::~WhitenessWitness() {
|
| int HashTableBase::ComputeCapacity(int at_least_space_for) {
|
| const int kMinCapacity = 4;
|
| int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for * 2);
|
| - if (capacity < kMinCapacity) {
|
| - capacity = kMinCapacity; // Guarantee min capacity.
|
| - }
|
| - return capacity;
|
| + return Max(capacity, kMinCapacity);
|
| }
|
|
|
|
|
| int HashTableBase::ComputeCapacityForSerialization(int at_least_space_for) {
|
| - return base::bits::RoundUpToPowerOfTwo32(at_least_space_for);
|
| + const int kMinCapacity = 1;
|
| + int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for);
|
| + return Max(capacity, kMinCapacity);
|
| }
|
|
|
|
|
|
|