Index: src/heap-snapshot-generator.h |
diff --git a/src/heap-snapshot-generator.h b/src/heap-snapshot-generator.h |
index cea995820f70f5194460b4a813b2082fad7d06b1..31d808856d180e7d4f2c67b7d172d58ff850a897 100644 |
--- a/src/heap-snapshot-generator.h |
+++ b/src/heap-snapshot-generator.h |
@@ -266,6 +266,16 @@ class HeapObjectsMap { |
void UpdateHeapObjectsMap(); |
void RemoveDeadEntries(); |
+ static bool AddressesMatch(void* key1, void* key2) { |
+ return key1 == key2; |
+ } |
+ |
+ static uint32_t AddressHash(Address addr) { |
+ return ComputeIntegerHash( |
+ static_cast<uint32_t>(reinterpret_cast<uintptr_t>(addr)), |
+ v8::internal::kZeroHashSeed); |
+ } |
+ |
SnapshotObjectId next_id_; |
HashMap entries_map_; |
List<EntryInfo> entries_; |