Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 2d054d00b66856c6be464e3f16d775b9922c19b8..d60ab29c4e62c2e60cc52a7b1cf54378076ed8e3 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1509,9 +1509,8 @@ InnerPointerToCodeCache::InnerPointerToCodeCacheEntry* |
InnerPointerToCodeCache::GetCacheEntry(Address inner_pointer) { |
isolate_->counters()->pc_to_code()->Increment(); |
DCHECK(base::bits::IsPowerOfTwo32(kInnerPointerToCodeCacheSize)); |
- uint32_t hash = ComputeIntegerHash( |
- static_cast<uint32_t>(reinterpret_cast<uintptr_t>(inner_pointer)), |
- v8::internal::kZeroHashSeed); |
+ uint32_t hash = ComputeIntegerHash(ObjectAddressForHashing(inner_pointer), |
+ v8::internal::kZeroHashSeed); |
uint32_t index = hash & (kInnerPointerToCodeCacheSize - 1); |
InnerPointerToCodeCacheEntry* entry = cache(index); |
if (entry->inner_pointer == inner_pointer) { |