Chromium Code Reviews| Index: src/heap-snapshot-generator.cc |
| diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
| index f5257e67033ca91e747f2e00c9d886bfe235d62b..46ad60613d1ce2d75c13cc0cb8799a2429fd9e66 100644 |
| --- a/src/heap-snapshot-generator.cc |
| +++ b/src/heap-snapshot-generator.cc |
| @@ -894,6 +894,11 @@ class IndexedReferencesExtractor : public ObjectVisitor { |
| parent_(parent), |
| next_index_(1) { |
| } |
| + void VisitCodeEntry(Address entry_address) { |
| + Code* code = Code::cast(Code::GetObjectFromEntryAddress(entry_address)); |
|
yurys
2013/07/16 18:26:10
Can we have a test for this?
alph
2013/07/17 10:08:22
Sure.
|
| + generator_->SetInternalReference(parent_obj_, parent_, "code", code); |
| + generator_->TagObject(code, "(code)"); |
| + } |
| void VisitPointers(Object** start, Object** end) { |
| for (Object** p = start; p < end; p++) { |
| if (CheckVisitedAndUnmark(p)) continue; |