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

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

Issue 7945009: Merge experimental/gc branch to the bleeding_edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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') | src/objects-visiting.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 break; 81 break;
82 case HEAP_NUMBER_TYPE: 82 case HEAP_NUMBER_TYPE:
83 HeapNumber::cast(this)->HeapNumberPrint(out); 83 HeapNumber::cast(this)->HeapNumberPrint(out);
84 break; 84 break;
85 case FIXED_ARRAY_TYPE: 85 case FIXED_ARRAY_TYPE:
86 FixedArray::cast(this)->FixedArrayPrint(out); 86 FixedArray::cast(this)->FixedArrayPrint(out);
87 break; 87 break;
88 case BYTE_ARRAY_TYPE: 88 case BYTE_ARRAY_TYPE:
89 ByteArray::cast(this)->ByteArrayPrint(out); 89 ByteArray::cast(this)->ByteArrayPrint(out);
90 break; 90 break;
91 case FREE_SPACE_TYPE:
92 FreeSpace::cast(this)->FreeSpacePrint(out);
93 break;
91 case EXTERNAL_PIXEL_ARRAY_TYPE: 94 case EXTERNAL_PIXEL_ARRAY_TYPE:
92 ExternalPixelArray::cast(this)->ExternalPixelArrayPrint(out); 95 ExternalPixelArray::cast(this)->ExternalPixelArrayPrint(out);
93 break; 96 break;
94 case EXTERNAL_BYTE_ARRAY_TYPE: 97 case EXTERNAL_BYTE_ARRAY_TYPE:
95 ExternalByteArray::cast(this)->ExternalByteArrayPrint(out); 98 ExternalByteArray::cast(this)->ExternalByteArrayPrint(out);
96 break; 99 break;
97 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: 100 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE:
98 ExternalUnsignedByteArray::cast(this) 101 ExternalUnsignedByteArray::cast(this)
99 ->ExternalUnsignedByteArrayPrint(out); 102 ->ExternalUnsignedByteArrayPrint(out);
100 break; 103 break;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 break; 185 break;
183 } 186 }
184 } 187 }
185 188
186 189
187 void ByteArray::ByteArrayPrint(FILE* out) { 190 void ByteArray::ByteArrayPrint(FILE* out) {
188 PrintF(out, "byte array, data starts at %p", GetDataStartAddress()); 191 PrintF(out, "byte array, data starts at %p", GetDataStartAddress());
189 } 192 }
190 193
191 194
195 void FreeSpace::FreeSpacePrint(FILE* out) {
196 PrintF(out, "free space, size %d", Size());
197 }
198
199
192 void ExternalPixelArray::ExternalPixelArrayPrint(FILE* out) { 200 void ExternalPixelArray::ExternalPixelArrayPrint(FILE* out) {
193 PrintF(out, "external pixel array"); 201 PrintF(out, "external pixel array");
194 } 202 }
195 203
196 204
197 void ExternalByteArray::ExternalByteArrayPrint(FILE* out) { 205 void ExternalByteArray::ExternalByteArrayPrint(FILE* out) {
198 PrintF(out, "external byte array"); 206 PrintF(out, "external byte array");
199 } 207 }
200 208
201 209
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 case EXTERNAL_SYMBOL_TYPE: return "EXTERNAL_SYMBOL"; 419 case EXTERNAL_SYMBOL_TYPE: return "EXTERNAL_SYMBOL";
412 case ASCII_STRING_TYPE: return "ASCII_STRING"; 420 case ASCII_STRING_TYPE: return "ASCII_STRING";
413 case STRING_TYPE: return "TWO_BYTE_STRING"; 421 case STRING_TYPE: return "TWO_BYTE_STRING";
414 case CONS_STRING_TYPE: 422 case CONS_STRING_TYPE:
415 case CONS_ASCII_STRING_TYPE: return "CONS_STRING"; 423 case CONS_ASCII_STRING_TYPE: return "CONS_STRING";
416 case EXTERNAL_ASCII_STRING_TYPE: 424 case EXTERNAL_ASCII_STRING_TYPE:
417 case EXTERNAL_STRING_WITH_ASCII_DATA_TYPE: 425 case EXTERNAL_STRING_WITH_ASCII_DATA_TYPE:
418 case EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING"; 426 case EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING";
419 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY"; 427 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY";
420 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY"; 428 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY";
429 case FREE_SPACE_TYPE: return "FREE_SPACE";
421 case EXTERNAL_PIXEL_ARRAY_TYPE: return "EXTERNAL_PIXEL_ARRAY"; 430 case EXTERNAL_PIXEL_ARRAY_TYPE: return "EXTERNAL_PIXEL_ARRAY";
422 case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY"; 431 case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY";
423 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: 432 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE:
424 return "EXTERNAL_UNSIGNED_BYTE_ARRAY"; 433 return "EXTERNAL_UNSIGNED_BYTE_ARRAY";
425 case EXTERNAL_SHORT_ARRAY_TYPE: return "EXTERNAL_SHORT_ARRAY"; 434 case EXTERNAL_SHORT_ARRAY_TYPE: return "EXTERNAL_SHORT_ARRAY";
426 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: 435 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE:
427 return "EXTERNAL_UNSIGNED_SHORT_ARRAY"; 436 return "EXTERNAL_UNSIGNED_SHORT_ARRAY";
428 case EXTERNAL_INT_ARRAY_TYPE: return "EXTERNAL_INT_ARRAY"; 437 case EXTERNAL_INT_ARRAY_TYPE: return "EXTERNAL_INT_ARRAY";
429 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: 438 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE:
430 return "EXTERNAL_UNSIGNED_INT_ARRAY"; 439 return "EXTERNAL_UNSIGNED_INT_ARRAY";
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 PrintF(out, "\n - hidden_prototype: %s", 807 PrintF(out, "\n - hidden_prototype: %s",
799 hidden_prototype() ? "true" : "false"); 808 hidden_prototype() ? "true" : "false");
800 PrintF(out, "\n - undetectable: %s", undetectable() ? "true" : "false"); 809 PrintF(out, "\n - undetectable: %s", undetectable() ? "true" : "false");
801 PrintF(out, "\n - need_access_check: %s", 810 PrintF(out, "\n - need_access_check: %s",
802 needs_access_check() ? "true" : "false"); 811 needs_access_check() ? "true" : "false");
803 } 812 }
804 813
805 814
806 void ObjectTemplateInfo::ObjectTemplateInfoPrint(FILE* out) { 815 void ObjectTemplateInfo::ObjectTemplateInfoPrint(FILE* out) {
807 HeapObject::PrintHeader(out, "ObjectTemplateInfo"); 816 HeapObject::PrintHeader(out, "ObjectTemplateInfo");
817 PrintF(out, " - tag: ");
818 tag()->ShortPrint(out);
819 PrintF(out, "\n - property_list: ");
820 property_list()->ShortPrint(out);
808 PrintF(out, "\n - constructor: "); 821 PrintF(out, "\n - constructor: ");
809 constructor()->ShortPrint(out); 822 constructor()->ShortPrint(out);
810 PrintF(out, "\n - internal_field_count: "); 823 PrintF(out, "\n - internal_field_count: ");
811 internal_field_count()->ShortPrint(out); 824 internal_field_count()->ShortPrint(out);
825 PrintF(out, "\n");
812 } 826 }
813 827
814 828
815 void SignatureInfo::SignatureInfoPrint(FILE* out) { 829 void SignatureInfo::SignatureInfoPrint(FILE* out) {
816 HeapObject::PrintHeader(out, "SignatureInfo"); 830 HeapObject::PrintHeader(out, "SignatureInfo");
817 PrintF(out, "\n - receiver: "); 831 PrintF(out, "\n - receiver: ");
818 receiver()->ShortPrint(out); 832 receiver()->ShortPrint(out);
819 PrintF(out, "\n - args: "); 833 PrintF(out, "\n - args: ");
820 args()->ShortPrint(out); 834 args()->ShortPrint(out);
821 } 835 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 desc.Print(out); 908 desc.Print(out);
895 } 909 }
896 PrintF(out, "\n"); 910 PrintF(out, "\n");
897 } 911 }
898 912
899 913
900 #endif // OBJECT_PRINT 914 #endif // OBJECT_PRINT
901 915
902 916
903 } } // namespace v8::internal 917 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/objects-visiting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698