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

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

Issue 23567003: Added a DependentCode field to AllocationSite. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment updates 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 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 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 HeapObject::PrintHeader(out, "TypeSwitchInfo"); 1093 HeapObject::PrintHeader(out, "TypeSwitchInfo");
1094 PrintF(out, "\n - types: "); 1094 PrintF(out, "\n - types: ");
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"); 1103 PrintF(out, "\n - dependent code: ");
1104 dependent_code()->ShortPrint(out);
1104 1105
1105 PrintF(out, " - transition_info: "); 1106 PrintF(out, "\n - transition_info: ");
1106 if (transition_info()->IsCell()) { 1107 if (transition_info()->IsCell()) {
1107 Cell* cell = Cell::cast(transition_info()); 1108 Cell* cell = Cell::cast(transition_info());
1108 Object* cell_contents = cell->value(); 1109 Object* cell_contents = cell->value();
1109 if (cell_contents->IsSmi()) { 1110 if (cell_contents->IsSmi()) {
1110 ElementsKind kind = static_cast<ElementsKind>( 1111 ElementsKind kind = static_cast<ElementsKind>(
1111 Smi::cast(cell_contents)->value()); 1112 Smi::cast(cell_contents)->value());
1112 PrintF(out, "Array allocation with ElementsKind "); 1113 PrintF(out, "Array allocation with ElementsKind ");
1113 PrintElementsKind(out, kind); 1114 PrintElementsKind(out, kind);
1114 PrintF(out, "\n"); 1115 PrintF(out, "\n");
1115 return; 1116 return;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 } 1235 }
1235 } 1236 }
1236 PrintF(out, "\n"); 1237 PrintF(out, "\n");
1237 } 1238 }
1238 1239
1239 1240
1240 #endif // OBJECT_PRINT 1241 #endif // OBJECT_PRINT
1241 1242
1242 1243
1243 } } // namespace v8::internal 1244 } } // 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