diff options
Diffstat (limited to 'deps/v8/src/base/hashmap.h')
-rw-r--r-- | deps/v8/src/base/hashmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/base/hashmap.h b/deps/v8/src/base/hashmap.h index 4436a2d949..d2b5810c1c 100644 --- a/deps/v8/src/base/hashmap.h +++ b/deps/v8/src/base/hashmap.h @@ -297,7 +297,7 @@ template <typename Key, typename Value, typename MatchFun, typename TemplateHashMapImpl<Key, Value, MatchFun, AllocationPolicy>::Entry* TemplateHashMapImpl<Key, Value, MatchFun, AllocationPolicy>::Probe( const Key& key, uint32_t hash) const { - DCHECK(base::bits::IsPowerOfTwo32(capacity_)); + DCHECK(base::bits::IsPowerOfTwo(capacity_)); size_t i = hash & (capacity_ - 1); DCHECK(i < capacity_); @@ -333,7 +333,7 @@ template <typename Key, typename Value, typename MatchFun, class AllocationPolicy> void TemplateHashMapImpl<Key, Value, MatchFun, AllocationPolicy>::Initialize( uint32_t capacity, AllocationPolicy allocator) { - DCHECK(base::bits::IsPowerOfTwo32(capacity)); + DCHECK(base::bits::IsPowerOfTwo(capacity)); map_ = reinterpret_cast<Entry*>(allocator.New(capacity * sizeof(Entry))); if (map_ == nullptr) { FATAL("Out of memory: HashMap::Initialize"); |