Chromium Code Reviews| Index: src/objects-printer.cc |
| diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
| index 26a709848ef1ad53977aa3cb1ef29eb2d06110a8..7d656aef8cc2cffd0a73e8190125e73a157f1582 100644 |
| --- a/src/objects-printer.cc |
| +++ b/src/objects-printer.cc |
| @@ -1103,6 +1103,15 @@ void AllocationSite::AllocationSitePrint(FILE* out) { |
| PrintF(out, "\n - dependent code: "); |
| dependent_code()->ShortPrint(out); |
| + // Just print the number of nested sites |
|
Hannes Payer (out of office)
2013/09/24 08:04:40
After discussing offline, let's print the nested s
mvstanton
2013/09/24 08:39:15
Done.
|
| + int nested_sites_count = 0; |
| + for (Object* current = nested_sites(); |
| + current != Smi::FromInt(0); |
| + current = AllocationSite::cast(current)->nested_sites()) { |
| + nested_sites_count++; |
| + } |
| + |
| + PrintF(out, "\n - # of nested sites: %d", nested_sites_count); |
| PrintF(out, "\n - transition_info: "); |
| if (transition_info()->IsCell()) { |
| Cell* cell = Cell::cast(transition_info()); |