Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 730e56d5f01b258a2706ea29fbdc97b3281fbda4..7a4ff33050e8845c2bb633d3083f587ed1453d8b 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7,6 +7,7 @@ |
#include "src/allocation.h" |
#include "src/assert-scope.h" |
+#include "src/base/bits.h" |
#include "src/builtins.h" |
#include "src/checks.h" |
#include "src/elements-kind.h" |
@@ -3694,7 +3695,7 @@ class HashTable: public FixedArray { |
// Returns probe entry. |
static uint32_t GetProbe(uint32_t hash, uint32_t number, uint32_t size) { |
- DCHECK(IsPowerOf2(size)); |
+ DCHECK(base::bits::IsPowerOfTwo32(size)); |
return (hash + GetProbeOffset(number)) & (size - 1); |
} |