Commit b5fa92eb authored by alph@chromium.org's avatar alph@chromium.org

Add named links to dependent_code in Map objects in heap snapshot.

R=loislo@chromium.org, ulan@chromium.org

Review URL: https://codereview.chromium.org/19631003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15752 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2165d400
...@@ -892,7 +892,7 @@ class IndexedReferencesExtractor : public ObjectVisitor { ...@@ -892,7 +892,7 @@ class IndexedReferencesExtractor : public ObjectVisitor {
: generator_(generator), : generator_(generator),
parent_obj_(parent_obj), parent_obj_(parent_obj),
parent_(parent), parent_(parent),
next_index_(1) { next_index_(0) {
} }
void VisitCodeEntry(Address entry_address) { void VisitCodeEntry(Address entry_address) {
Code* code = Code::cast(Code::GetObjectFromEntryAddress(entry_address)); Code* code = Code::cast(Code::GetObjectFromEntryAddress(entry_address));
...@@ -1147,6 +1147,10 @@ void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) { ...@@ -1147,6 +1147,10 @@ void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) {
SetInternalReference(map, entry, SetInternalReference(map, entry,
"constructor", map->constructor(), "constructor", map->constructor(),
Map::kConstructorOffset); Map::kConstructorOffset);
TagObject(map->dependent_code(), "(dependent code)");
SetInternalReference(map, entry,
"dependent_code", map->dependent_code(),
Map::kDependentCodeOffset);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment