Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 4fce54a90a442159228d900b6f7488281dcb9cdf..4929c0d2dfd56a70900d070e8d2b2e87f52120c2 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2836,6 +2836,13 @@ |
int HashTableBase::ComputeCapacity(int at_least_space_for) { |
const int kMinCapacity = 4; |
int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for * 2); |
+ return Max(capacity, kMinCapacity); |
+} |
+ |
+ |
+int HashTableBase::ComputeCapacityForSerialization(int at_least_space_for) { |
+ const int kMinCapacity = 1; |
+ int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for); |
return Max(capacity, kMinCapacity); |
} |