Chromium Code Reviews| Index: src/profiler/heap-snapshot-generator.cc |
| diff --git a/src/profiler/heap-snapshot-generator.cc b/src/profiler/heap-snapshot-generator.cc |
| index 153caf35314f6a7e6fe3482a54ba53cee2498d37..39983be345df5bfeeb546f52c1d3242c2e4cce26 100644 |
| --- a/src/profiler/heap-snapshot-generator.cc |
| +++ b/src/profiler/heap-snapshot-generator.cc |
| @@ -355,16 +355,8 @@ const SnapshotObjectId HeapObjectsMap::kFirstAvailableObjectId = |
| HeapObjectsMap::kGcRootsFirstSubrootId + |
| VisitorSynchronization::kNumberOfSyncTags * HeapObjectsMap::kObjectIdStep; |
| - |
| -static bool AddressesMatch(void* key1, void* key2) { |
| - return key1 == key2; |
| -} |
| - |
| - |
| HeapObjectsMap::HeapObjectsMap(Heap* heap) |
| - : next_id_(kFirstAvailableObjectId), |
| - entries_map_(AddressesMatch), |
| - heap_(heap) { |
| + : next_id_(kFirstAvailableObjectId), entries_map_(), heap_(heap) { |
|
marja
2016/09/30 10:27:33
Since entries_map_ can now use the default ctor, c
Leszek Swirski
2016/09/30 10:44:28
Done.
|
| // This dummy element solves a problem with entries_map_. |
| // When we do lookup in HashMap we see no difference between two cases: |
| // it has an entry with NULL as the value or it has created |