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

Side by Side Diff: src/objects-printer.cc

Issue 132063004: More efficient use of space in AllocationSite. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 11 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 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 1129
1130 void AllocationSite::AllocationSitePrint(FILE* out) { 1130 void AllocationSite::AllocationSitePrint(FILE* out) {
1131 HeapObject::PrintHeader(out, "AllocationSite"); 1131 HeapObject::PrintHeader(out, "AllocationSite");
1132 PrintF(out, " - weak_next: "); 1132 PrintF(out, " - weak_next: ");
1133 weak_next()->ShortPrint(out); 1133 weak_next()->ShortPrint(out);
1134 PrintF(out, "\n - dependent code: "); 1134 PrintF(out, "\n - dependent code: ");
1135 dependent_code()->ShortPrint(out); 1135 dependent_code()->ShortPrint(out);
1136 PrintF(out, "\n - nested site: "); 1136 PrintF(out, "\n - nested site: ");
1137 nested_site()->ShortPrint(out); 1137 nested_site()->ShortPrint(out);
1138 PrintF(out, "\n - memento found count: "); 1138 PrintF(out, "\n - memento found count: ");
1139 memento_found_count()->ShortPrint(out); 1139 Smi::FromInt(memento_found_count())->ShortPrint(out);
1140 PrintF(out, "\n - memento create count: "); 1140 PrintF(out, "\n - memento create count: ");
1141 memento_create_count()->ShortPrint(out); 1141 Smi::FromInt(memento_create_count())->ShortPrint(out);
1142 PrintF(out, "\n - pretenure decision: "); 1142 PrintF(out, "\n - pretenure decision: ");
1143 pretenure_decision()->ShortPrint(out); 1143 Smi::FromInt(pretenure_decision())->ShortPrint(out);
1144 PrintF(out, "\n - transition_info: "); 1144 PrintF(out, "\n - transition_info: ");
1145 if (transition_info()->IsSmi()) { 1145 if (transition_info()->IsSmi()) {
1146 ElementsKind kind = GetElementsKind(); 1146 ElementsKind kind = GetElementsKind();
1147 PrintF(out, "Array allocation with ElementsKind "); 1147 PrintF(out, "Array allocation with ElementsKind ");
1148 PrintElementsKind(out, kind); 1148 PrintElementsKind(out, kind);
1149 PrintF(out, "\n"); 1149 PrintF(out, "\n");
1150 return; 1150 return;
1151 } else if (transition_info()->IsJSArray()) { 1151 } else if (transition_info()->IsJSArray()) {
1152 PrintF(out, "Array literal "); 1152 PrintF(out, "Array literal ");
1153 transition_info()->ShortPrint(out); 1153 transition_info()->ShortPrint(out);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 } 1268 }
1269 } 1269 }
1270 PrintF(out, "\n"); 1270 PrintF(out, "\n");
1271 } 1271 }
1272 1272
1273 1273
1274 #endif // OBJECT_PRINT 1274 #endif // OBJECT_PRINT
1275 1275
1276 1276
1277 } } // namespace v8::internal 1277 } } // 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