Index: src/profiler/heap-snapshot-generator.cc |
diff --git a/src/profiler/heap-snapshot-generator.cc b/src/profiler/heap-snapshot-generator.cc |
index dd49a191a90660afec2b6071f9035a735fb3fca6..a76c5a127c6f488a0302c1f7e6406cb33019b022 100644 |
--- a/src/profiler/heap-snapshot-generator.cc |
+++ b/src/profiler/heap-snapshot-generator.cc |
@@ -1319,7 +1319,6 @@ void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) { |
Map::kConstructorOrBackPointerOffset); |
} |
TagObject(map->dependent_code(), "(dependent code)"); |
- MarkAsWeakContainer(map->dependent_code()); |
SetInternalReference(map, entry, "dependent_code", map->dependent_code(), |
Map::kDependentCodeOffset); |
TagObject(map->weak_cell_cache(), "(weak cell)"); |
@@ -1495,7 +1494,7 @@ void V8HeapExplorer::ExtractPropertyCellReferences(int entry, |
PropertyCell* cell) { |
SetInternalReference(cell, entry, "value", cell->value(), |
PropertyCell::kValueOffset); |
- MarkAsWeakContainer(cell->dependent_code()); |
+ TagObject(cell->dependent_code(), "(dependent code)"); |
SetInternalReference(cell, entry, "dependent_code", cell->dependent_code(), |
PropertyCell::kDependentCodeOffset); |
} |
@@ -1507,7 +1506,7 @@ void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, |
AllocationSite::kTransitionInfoOffset); |
SetInternalReference(site, entry, "nested_site", site->nested_site(), |
AllocationSite::kNestedSiteOffset); |
- MarkAsWeakContainer(site->dependent_code()); |
+ TagObject(site->dependent_code(), "(dependent code)"); |
SetInternalReference(site, entry, "dependent_code", site->dependent_code(), |
AllocationSite::kDependentCodeOffset); |
// Do not visit weak_next as it is not visited by the StaticVisitor, |