Chromium Code Reviews| Index: src/heap-snapshot-generator.cc |
| diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
| index d65b8140039e43eb1e7c9d76747c54e6c3d0c1da..c5ec6f4917283d632df5e133755f74b63f928c0d 100644 |
| --- a/src/heap-snapshot-generator.cc |
| +++ b/src/heap-snapshot-generator.cc |
| @@ -958,6 +958,9 @@ void V8HeapExplorer::ExtractReferences(HeapObject* obj) { |
| ExtractPropertyCellReferences( |
|
Michael Achenbach
2013/07/09 12:53:10
nit: (unrelated) make one-liner
mvstanton
2013/07/09 14:20:18
Done.
|
| entry, PropertyCell::cast(obj)); |
| extract_indexed_refs = false; |
| + } else if (obj->IsAllocationSite()) { |
| + ExtractAllocationSiteReferences(entry, AllocationSite::cast(obj)); |
| + extract_indexed_refs = false; |
| } |
| if (extract_indexed_refs) { |
| SetInternalReference(obj, entry, "map", obj->map(), HeapObject::kMapOffset); |
| @@ -1264,6 +1267,12 @@ void V8HeapExplorer::ExtractPropertyCellReferences(int entry, |
| } |
| +void V8HeapExplorer::ExtractAllocationSiteReferences(int entry, |
| + AllocationSite* site) { |
| + SetInternalReference(site, entry, "transition_info", site->transition_info()); |
| +} |
| + |
| + |
| void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj, int entry) { |
| if (!js_obj->IsJSFunction()) return; |