Chromium Code Reviews| Index: src/profile-generator.h |
| diff --git a/src/profile-generator.h b/src/profile-generator.h |
| index 1fa647eef1df03e3e6d1ba819cfb32e51d09efb5..0e6a0899c8c61c9a2fc45c98208ed8210a0af7e6 100644 |
| --- a/src/profile-generator.h |
| +++ b/src/profile-generator.h |
| @@ -722,16 +722,18 @@ class HeapObjectsMap { |
| private: |
| struct EntryInfo { |
| - explicit EntryInfo(SnapshotObjectId id) : id(id), accessed(true) { } |
| - EntryInfo(SnapshotObjectId id, bool accessed) |
| - : id(id), |
| - accessed(accessed) { } |
| + EntryInfo(SnapshotObjectId id, Address addr) |
| + : id(id), addr(addr), accessed(true) { } |
| + EntryInfo(SnapshotObjectId id, Address addr, bool accessed) |
| + : id(id), addr(addr), accessed(accessed) { } |
| SnapshotObjectId id; |
| + Address addr; |
| bool accessed; |
| }; |
| void AddEntry(Address addr, SnapshotObjectId id); |
| SnapshotObjectId FindEntry(Address addr); |
| + int UpdateEntryInfoAddress(Address addr, uint32_t hash, Address new_addr); |
|
mnaganov (inactive)
2012/04/10 13:50:14
hash -> addr_hash. Otherwise, it's not clear where
|
| void RemoveDeadEntries(); |
| static bool AddressesMatch(void* key1, void* key2) { |