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 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 | 1112 |
1113 void TypeSwitchInfo::TypeSwitchInfoPrint(FILE* out) { | 1113 void TypeSwitchInfo::TypeSwitchInfoPrint(FILE* out) { |
1114 HeapObject::PrintHeader(out, "TypeSwitchInfo"); | 1114 HeapObject::PrintHeader(out, "TypeSwitchInfo"); |
1115 PrintF(out, "\n - types: "); | 1115 PrintF(out, "\n - types: "); |
1116 types()->ShortPrint(out); | 1116 types()->ShortPrint(out); |
1117 } | 1117 } |
1118 | 1118 |
1119 | 1119 |
1120 void AllocationSite::AllocationSitePrint(FILE* out) { | 1120 void AllocationSite::AllocationSitePrint(FILE* out) { |
1121 HeapObject::PrintHeader(out, "AllocationSite"); | 1121 HeapObject::PrintHeader(out, "AllocationSite"); |
| 1122 PrintF(out, " - weak_next: "); |
| 1123 weak_next()->ShortPrint(out); |
| 1124 PrintF(out, "\n"); |
| 1125 |
1122 PrintF(out, " - transition_info: "); | 1126 PrintF(out, " - transition_info: "); |
1123 if (transition_info()->IsCell()) { | 1127 if (transition_info()->IsCell()) { |
1124 Cell* cell = Cell::cast(transition_info()); | 1128 Cell* cell = Cell::cast(transition_info()); |
1125 Object* cell_contents = cell->value(); | 1129 Object* cell_contents = cell->value(); |
1126 if (cell_contents->IsSmi()) { | 1130 if (cell_contents->IsSmi()) { |
1127 ElementsKind kind = static_cast<ElementsKind>( | 1131 ElementsKind kind = static_cast<ElementsKind>( |
1128 Smi::cast(cell_contents)->value()); | 1132 Smi::cast(cell_contents)->value()); |
1129 PrintF(out, "Array allocation with ElementsKind "); | 1133 PrintF(out, "Array allocation with ElementsKind "); |
1130 PrintElementsKind(out, kind); | 1134 PrintElementsKind(out, kind); |
1131 PrintF(out, "\n"); | 1135 PrintF(out, "\n"); |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 } | 1256 } |
1253 } | 1257 } |
1254 PrintF(out, "\n"); | 1258 PrintF(out, "\n"); |
1255 } | 1259 } |
1256 | 1260 |
1257 | 1261 |
1258 #endif // OBJECT_PRINT | 1262 #endif // OBJECT_PRINT |
1259 | 1263 |
1260 | 1264 |
1261 } } // namespace v8::internal | 1265 } } // namespace v8::internal |
OLD | NEW |