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

Side by Side 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: Comment responsio. Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 types()->ShortPrint(out); 1095 types()->ShortPrint(out);
1096 } 1096 }
1097 1097
1098 1098
1099 void AllocationSite::AllocationSitePrint(FILE* out) { 1099 void AllocationSite::AllocationSitePrint(FILE* out) {
1100 HeapObject::PrintHeader(out, "AllocationSite"); 1100 HeapObject::PrintHeader(out, "AllocationSite");
1101 PrintF(out, " - weak_next: "); 1101 PrintF(out, " - weak_next: ");
1102 weak_next()->ShortPrint(out); 1102 weak_next()->ShortPrint(out);
1103 PrintF(out, "\n - dependent code: "); 1103 PrintF(out, "\n - dependent code: ");
1104 dependent_code()->ShortPrint(out); 1104 dependent_code()->ShortPrint(out);
1105 1105 PrintF(out, "\n - nested site: ");
1106 nested_site()->ShortPrint(out);
1106 PrintF(out, "\n - transition_info: "); 1107 PrintF(out, "\n - transition_info: ");
1107 if (transition_info()->IsCell()) { 1108 if (transition_info()->IsCell()) {
1108 Cell* cell = Cell::cast(transition_info()); 1109 Cell* cell = Cell::cast(transition_info());
1109 Object* cell_contents = cell->value(); 1110 Object* cell_contents = cell->value();
1110 if (cell_contents->IsSmi()) { 1111 if (cell_contents->IsSmi()) {
1111 ElementsKind kind = static_cast<ElementsKind>( 1112 ElementsKind kind = static_cast<ElementsKind>(
1112 Smi::cast(cell_contents)->value()); 1113 Smi::cast(cell_contents)->value());
1113 PrintF(out, "Array allocation with ElementsKind "); 1114 PrintF(out, "Array allocation with ElementsKind ");
1114 PrintElementsKind(out, kind); 1115 PrintElementsKind(out, kind);
1115 PrintF(out, "\n"); 1116 PrintF(out, "\n");
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 } 1236 }
1236 } 1237 }
1237 PrintF(out, "\n"); 1238 PrintF(out, "\n");
1238 } 1239 }
1239 1240
1240 1241
1241 #endif // OBJECT_PRINT 1242 #endif // OBJECT_PRINT
1242 1243
1243 1244
1244 } } // namespace v8::internal 1245 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698