OLD | NEW |
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 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 | 1117 |
1118 | 1118 |
1119 void AllocationSite::AllocationSitePrint(FILE* out) { | 1119 void AllocationSite::AllocationSitePrint(FILE* out) { |
1120 HeapObject::PrintHeader(out, "AllocationSite"); | 1120 HeapObject::PrintHeader(out, "AllocationSite"); |
1121 PrintF(out, " - weak_next: "); | 1121 PrintF(out, " - weak_next: "); |
1122 weak_next()->ShortPrint(out); | 1122 weak_next()->ShortPrint(out); |
1123 PrintF(out, "\n - dependent code: "); | 1123 PrintF(out, "\n - dependent code: "); |
1124 dependent_code()->ShortPrint(out); | 1124 dependent_code()->ShortPrint(out); |
1125 PrintF(out, "\n - nested site: "); | 1125 PrintF(out, "\n - nested site: "); |
1126 nested_site()->ShortPrint(out); | 1126 nested_site()->ShortPrint(out); |
| 1127 PrintF(out, "\n - memento found count: "); |
| 1128 memento_found_count()->ShortPrint(out); |
| 1129 PrintF(out, "\n - memento create count: "); |
| 1130 memento_create_count()->ShortPrint(out); |
| 1131 PrintF(out, "\n - pretenure decision: "); |
| 1132 pretenure_decision()->ShortPrint(out); |
1127 PrintF(out, "\n - transition_info: "); | 1133 PrintF(out, "\n - transition_info: "); |
1128 if (transition_info()->IsCell()) { | 1134 if (transition_info()->IsCell()) { |
1129 Cell* cell = Cell::cast(transition_info()); | 1135 Cell* cell = Cell::cast(transition_info()); |
1130 Object* cell_contents = cell->value(); | 1136 Object* cell_contents = cell->value(); |
1131 if (cell_contents->IsSmi()) { | 1137 if (cell_contents->IsSmi()) { |
1132 ElementsKind kind = static_cast<ElementsKind>( | 1138 ElementsKind kind = static_cast<ElementsKind>( |
1133 Smi::cast(cell_contents)->value()); | 1139 Smi::cast(cell_contents)->value()); |
1134 PrintF(out, "Array allocation with ElementsKind "); | 1140 PrintF(out, "Array allocation with ElementsKind "); |
1135 PrintElementsKind(out, kind); | 1141 PrintElementsKind(out, kind); |
1136 PrintF(out, "\n"); | 1142 PrintF(out, "\n"); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 } | 1262 } |
1257 } | 1263 } |
1258 PrintF(out, "\n"); | 1264 PrintF(out, "\n"); |
1259 } | 1265 } |
1260 | 1266 |
1261 | 1267 |
1262 #endif // OBJECT_PRINT | 1268 #endif // OBJECT_PRINT |
1263 | 1269 |
1264 | 1270 |
1265 } } // namespace v8::internal | 1271 } } // namespace v8::internal |
OLD | NEW |