Always show link to prototype transitions in heap snapshot.

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

Review URL: https://chromiumcodereview.appspot.com/10041028

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11378 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
alexeif@chromium.org 2012-04-18 17:02:57 +00:00
parent 3b3e701a27
commit 70918cb8a9

View File

@ -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);