Reviewers: Mikhail Naganov (Chromium), Yury Semikhatsky, loislo,

Description:
Always show link to prototype transitions in heap snapshot.

... otherwise it is shown as a hidden reference with a meaningless name.


Please review this at https://chromiumcodereview.appspot.com/10041028/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/profile-generator.cc


Index: src/profile-generator.cc
diff --git a/src/profile-generator.cc b/src/profile-generator.cc
index f0aaa499e72527f6a08d0cc284e7a98fd59381c0..5d74c42ac1e0a6ec1310734bd5816a7203da29b6 100644
--- a/src/profile-generator.cc
+++ b/src/profile-generator.cc
@@ -2083,14 +2083,10 @@ void V8HeapExplorer::ExtractReferences(HeapObject* obj) {
                            "descriptors", map->instance_descriptors(),
                            Map::kInstanceDescriptorsOrBitField3Offset);
     }
-    if (map->prototype_transitions() != heap_->empty_fixed_array()) {
-      TagObject(map->prototype_transitions(), "(prototype transitions)");
-      SetInternalReference(obj,
-                           entry,
-                           "prototype_transitions",
-                           map->prototype_transitions(),
-                           Map::kPrototypeTransitionsOffset);
-    }
+    TagObject(map->prototype_transitions(), "(prototype transitions)");
+    SetInternalReference(obj, entry,
+ "prototype_transitions", map->prototype_transitions(),
+                         Map::kPrototypeTransitionsOffset);
     SetInternalReference(obj, entry,
                          "code_cache", map->code_cache(),
                          Map::kCodeCacheOffset);


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to