Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: src/profiler/heap-snapshot-generator.cc

Issue 2204893002: Add Map::weak_cell_cache internal link to heap snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/cctest/test-heap-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profiler/heap-snapshot-generator.cc
diff --git a/src/profiler/heap-snapshot-generator.cc b/src/profiler/heap-snapshot-generator.cc
index f39118ed93a648627b4ddcd2807098a601edfc30..1d25396936dddf0bbcd866e8db9bddea2d8fad8e 100644
--- a/src/profiler/heap-snapshot-generator.cc
+++ b/src/profiler/heap-snapshot-generator.cc
@@ -1320,9 +1320,11 @@ void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) {
}
TagObject(map->dependent_code(), "(dependent code)");
MarkAsWeakContainer(map->dependent_code());
- SetInternalReference(map, entry,
- "dependent_code", map->dependent_code(),
+ SetInternalReference(map, entry, "dependent_code", map->dependent_code(),
Map::kDependentCodeOffset);
+ TagObject(map->weak_cell_cache(), "(weak cell)");
+ SetInternalReference(map, entry, "weak_cell_cache", map->weak_cell_cache(),
+ Map::kWeakCellCacheOffset);
}
« no previous file with comments | « no previous file | test/cctest/test-heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698