| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 Loading... |
| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 break; | 173 break; |
| 171 } | 174 } |
| 172 } | 175 } |
| 173 | 176 |
| 174 | 177 |
| 175 void ByteArray::ByteArrayPrint(FILE* out) { | 178 void ByteArray::ByteArrayPrint(FILE* out) { |
| 176 PrintF(out, "byte array, data starts at %p", GetDataStartAddress()); | 179 PrintF(out, "byte array, data starts at %p", GetDataStartAddress()); |
| 177 } | 180 } |
| 178 | 181 |
| 179 | 182 |
| 183 void FreeSpace::FreeSpacePrint(FILE* out) { |
| 184 PrintF(out, "free space, size %d", Size()); |
| 185 } |
| 186 |
| 187 |
| 180 void ExternalPixelArray::ExternalPixelArrayPrint(FILE* out) { | 188 void ExternalPixelArray::ExternalPixelArrayPrint(FILE* out) { |
| 181 PrintF(out, "external pixel array"); | 189 PrintF(out, "external pixel array"); |
| 182 } | 190 } |
| 183 | 191 |
| 184 | 192 |
| 185 void ExternalByteArray::ExternalByteArrayPrint(FILE* out) { | 193 void ExternalByteArray::ExternalByteArrayPrint(FILE* out) { |
| 186 PrintF(out, "external byte array"); | 194 PrintF(out, "external byte array"); |
| 187 } | 195 } |
| 188 | 196 |
| 189 | 197 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 case EXTERNAL_SYMBOL_TYPE: return "EXTERNAL_SYMBOL"; | 373 case EXTERNAL_SYMBOL_TYPE: return "EXTERNAL_SYMBOL"; |
| 366 case ASCII_STRING_TYPE: return "ASCII_STRING"; | 374 case ASCII_STRING_TYPE: return "ASCII_STRING"; |
| 367 case STRING_TYPE: return "TWO_BYTE_STRING"; | 375 case STRING_TYPE: return "TWO_BYTE_STRING"; |
| 368 case CONS_STRING_TYPE: | 376 case CONS_STRING_TYPE: |
| 369 case CONS_ASCII_STRING_TYPE: return "CONS_STRING"; | 377 case CONS_ASCII_STRING_TYPE: return "CONS_STRING"; |
| 370 case EXTERNAL_ASCII_STRING_TYPE: | 378 case EXTERNAL_ASCII_STRING_TYPE: |
| 371 case EXTERNAL_STRING_WITH_ASCII_DATA_TYPE: | 379 case EXTERNAL_STRING_WITH_ASCII_DATA_TYPE: |
| 372 case EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING"; | 380 case EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING"; |
| 373 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY"; | 381 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY"; |
| 374 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY"; | 382 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY"; |
| 383 case FREE_SPACE_TYPE: return "FREE_SPACE"; |
| 375 case EXTERNAL_PIXEL_ARRAY_TYPE: return "EXTERNAL_PIXEL_ARRAY"; | 384 case EXTERNAL_PIXEL_ARRAY_TYPE: return "EXTERNAL_PIXEL_ARRAY"; |
| 376 case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY"; | 385 case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY"; |
| 377 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: | 386 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: |
| 378 return "EXTERNAL_UNSIGNED_BYTE_ARRAY"; | 387 return "EXTERNAL_UNSIGNED_BYTE_ARRAY"; |
| 379 case EXTERNAL_SHORT_ARRAY_TYPE: return "EXTERNAL_SHORT_ARRAY"; | 388 case EXTERNAL_SHORT_ARRAY_TYPE: return "EXTERNAL_SHORT_ARRAY"; |
| 380 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | 389 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
| 381 return "EXTERNAL_UNSIGNED_SHORT_ARRAY"; | 390 return "EXTERNAL_UNSIGNED_SHORT_ARRAY"; |
| 382 case EXTERNAL_INT_ARRAY_TYPE: return "EXTERNAL_INT_ARRAY"; | 391 case EXTERNAL_INT_ARRAY_TYPE: return "EXTERNAL_INT_ARRAY"; |
| 383 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: | 392 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: |
| 384 return "EXTERNAL_UNSIGNED_INT_ARRAY"; | 393 return "EXTERNAL_UNSIGNED_INT_ARRAY"; |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 desc.Print(out); | 801 desc.Print(out); |
| 793 } | 802 } |
| 794 PrintF(out, "\n"); | 803 PrintF(out, "\n"); |
| 795 } | 804 } |
| 796 | 805 |
| 797 | 806 |
| 798 #endif // OBJECT_PRINT | 807 #endif // OBJECT_PRINT |
| 799 | 808 |
| 800 | 809 |
| 801 } } // namespace v8::internal | 810 } } // namespace v8::internal |
| OLD | NEW |