Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Unified Diff: src/objects-printer.cc

Issue 23463047: Add field nested_sites to AllocationSite. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A few more changes Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/objects.h ('K') | « src/objects-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« src/objects.h ('K') | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698