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

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

Issue 149133004: A64: Synchronize with r17807. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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') | src/parser.cc » ('j') | 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 UNREACHABLE(); 516 UNREACHABLE();
517 return "UNKNOWN"; // Keep the compiler happy. 517 return "UNKNOWN"; // Keep the compiler happy.
518 } 518 }
519 519
520 520
521 void Symbol::SymbolPrint(FILE* out) { 521 void Symbol::SymbolPrint(FILE* out) {
522 HeapObject::PrintHeader(out, "Symbol"); 522 HeapObject::PrintHeader(out, "Symbol");
523 PrintF(out, " - hash: %d\n", Hash()); 523 PrintF(out, " - hash: %d\n", Hash());
524 PrintF(out, " - name: "); 524 PrintF(out, " - name: ");
525 name()->ShortPrint(); 525 name()->ShortPrint();
526 PrintF(out, " - private: %d\n", is_private());
526 PrintF(out, "\n"); 527 PrintF(out, "\n");
527 } 528 }
528 529
529 530
530 void Map::MapPrint(FILE* out) { 531 void Map::MapPrint(FILE* out) {
531 HeapObject::PrintHeader(out, "Map"); 532 HeapObject::PrintHeader(out, "Map");
532 PrintF(out, " - type: %s\n", TypeToString(instance_type())); 533 PrintF(out, " - type: %s\n", TypeToString(instance_type()));
533 PrintF(out, " - instance size: %d\n", instance_size()); 534 PrintF(out, " - instance size: %d\n", instance_size());
534 PrintF(out, " - inobject properties: %d\n", inobject_properties()); 535 PrintF(out, " - inobject properties: %d\n", inobject_properties());
535 PrintF(out, " - elements kind: "); 536 PrintF(out, " - elements kind: ");
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 1119
1119 void AllocationSite::AllocationSitePrint(FILE* out) { 1120 void AllocationSite::AllocationSitePrint(FILE* out) {
1120 HeapObject::PrintHeader(out, "AllocationSite"); 1121 HeapObject::PrintHeader(out, "AllocationSite");
1121 PrintF(out, " - weak_next: "); 1122 PrintF(out, " - weak_next: ");
1122 weak_next()->ShortPrint(out); 1123 weak_next()->ShortPrint(out);
1123 PrintF(out, "\n - dependent code: "); 1124 PrintF(out, "\n - dependent code: ");
1124 dependent_code()->ShortPrint(out); 1125 dependent_code()->ShortPrint(out);
1125 PrintF(out, "\n - nested site: "); 1126 PrintF(out, "\n - nested site: ");
1126 nested_site()->ShortPrint(out); 1127 nested_site()->ShortPrint(out);
1127 PrintF(out, "\n - transition_info: "); 1128 PrintF(out, "\n - transition_info: ");
1128 if (transition_info()->IsCell()) { 1129 if (transition_info()->IsSmi()) {
1129 Cell* cell = Cell::cast(transition_info()); 1130 ElementsKind kind = GetElementsKind();
1130 Object* cell_contents = cell->value(); 1131 PrintF(out, "Array allocation with ElementsKind ");
1131 if (cell_contents->IsSmi()) { 1132 PrintElementsKind(out, kind);
1132 ElementsKind kind = static_cast<ElementsKind>( 1133 PrintF(out, "\n");
1133 Smi::cast(cell_contents)->value()); 1134 return;
1134 PrintF(out, "Array allocation with ElementsKind ");
1135 PrintElementsKind(out, kind);
1136 PrintF(out, "\n");
1137 return;
1138 }
1139 } else if (transition_info()->IsJSArray()) { 1135 } else if (transition_info()->IsJSArray()) {
1140 PrintF(out, "Array literal "); 1136 PrintF(out, "Array literal ");
1141 transition_info()->ShortPrint(out); 1137 transition_info()->ShortPrint(out);
1142 PrintF(out, "\n"); 1138 PrintF(out, "\n");
1143 return; 1139 return;
1144 } 1140 }
1145 1141
1146 PrintF(out, "unknown transition_info"); 1142 PrintF(out, "unknown transition_info");
1147 transition_info()->ShortPrint(out); 1143 transition_info()->ShortPrint(out);
1148 PrintF(out, "\n"); 1144 PrintF(out, "\n");
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 } 1252 }
1257 } 1253 }
1258 PrintF(out, "\n"); 1254 PrintF(out, "\n");
1259 } 1255 }
1260 1256
1261 1257
1262 #endif // OBJECT_PRINT 1258 #endif // OBJECT_PRINT
1263 1259
1264 1260
1265 } } // namespace v8::internal 1261 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698