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

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

Issue 2204133002: Bring heap snapshot Map iterator up to date. (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 | « src/objects-inl.h ('k') | no next file » | 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 a4213226be4f4f62ff7923aa826d47ecbb2d795f..7b76714d33eedddad4a71ce6f03577de45af0482 100644
--- a/src/profiler/heap-snapshot-generator.cc
+++ b/src/profiler/heap-snapshot-generator.cc
@@ -1289,16 +1289,19 @@ void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) {
}
DescriptorArray* descriptors = map->instance_descriptors();
TagObject(descriptors, "(map descriptors)");
- SetInternalReference(map, entry,
- "descriptors", descriptors,
+ SetInternalReference(map, entry, "descriptors", descriptors,
Map::kDescriptorsOffset);
-
- MarkAsWeakContainer(map->code_cache());
- SetInternalReference(map, entry,
- "code_cache", map->code_cache(),
+ SetInternalReference(map, entry, "code_cache", map->code_cache(),
Map::kCodeCacheOffset);
- SetInternalReference(map, entry,
- "prototype", map->prototype(), Map::kPrototypeOffset);
+ SetInternalReference(map, entry, "prototype", map->prototype(),
+ Map::kPrototypeOffset);
+#if V8_DOUBLE_FIELDS_UNBOXING
+ if (FLAG_unbox_double_fields) {
+ SetInternalReference(map, entry, "layout_descriptor",
+ map->layout_descriptor(),
+ Map::kLayoutDescriptorOffset);
+ }
+#endif
Object* constructor_or_backpointer = map->constructor_or_backpointer();
if (constructor_or_backpointer->IsMap()) {
TagObject(constructor_or_backpointer, "(back pointer)");
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698