OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 static const char* TypeToString(InstanceType type) { | 545 static const char* TypeToString(InstanceType type) { |
546 switch (type) { | 546 switch (type) { |
547 case INVALID_TYPE: return "INVALID"; | 547 case INVALID_TYPE: return "INVALID"; |
548 case MAP_TYPE: return "MAP"; | 548 case MAP_TYPE: return "MAP"; |
549 case HEAP_NUMBER_TYPE: return "HEAP_NUMBER"; | 549 case HEAP_NUMBER_TYPE: return "HEAP_NUMBER"; |
550 case SYMBOL_TYPE: return "SYMBOL"; | 550 case SYMBOL_TYPE: return "SYMBOL"; |
551 case ASCII_SYMBOL_TYPE: return "ASCII_SYMBOL"; | 551 case ASCII_SYMBOL_TYPE: return "ASCII_SYMBOL"; |
552 case CONS_SYMBOL_TYPE: return "CONS_SYMBOL"; | 552 case CONS_SYMBOL_TYPE: return "CONS_SYMBOL"; |
553 case CONS_ASCII_SYMBOL_TYPE: return "CONS_ASCII_SYMBOL"; | 553 case CONS_ASCII_SYMBOL_TYPE: return "CONS_ASCII_SYMBOL"; |
554 case EXTERNAL_ASCII_SYMBOL_TYPE: | 554 case EXTERNAL_ASCII_SYMBOL_TYPE: |
| 555 case EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE: |
555 case EXTERNAL_SYMBOL_TYPE: return "EXTERNAL_SYMBOL"; | 556 case EXTERNAL_SYMBOL_TYPE: return "EXTERNAL_SYMBOL"; |
556 case ASCII_STRING_TYPE: return "ASCII_STRING"; | 557 case ASCII_STRING_TYPE: return "ASCII_STRING"; |
557 case STRING_TYPE: return "TWO_BYTE_STRING"; | 558 case STRING_TYPE: return "TWO_BYTE_STRING"; |
558 case CONS_STRING_TYPE: | 559 case CONS_STRING_TYPE: |
559 case CONS_ASCII_STRING_TYPE: return "CONS_STRING"; | 560 case CONS_ASCII_STRING_TYPE: return "CONS_STRING"; |
560 case EXTERNAL_ASCII_STRING_TYPE: | 561 case EXTERNAL_ASCII_STRING_TYPE: |
| 562 case EXTERNAL_STRING_WITH_ASCII_DATA_TYPE: |
561 case EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING"; | 563 case EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING"; |
562 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY"; | 564 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY"; |
563 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY"; | 565 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY"; |
564 case PIXEL_ARRAY_TYPE: return "PIXEL_ARRAY"; | 566 case PIXEL_ARRAY_TYPE: return "PIXEL_ARRAY"; |
565 case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY"; | 567 case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY"; |
566 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: | 568 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: |
567 return "EXTERNAL_UNSIGNED_BYTE_ARRAY"; | 569 return "EXTERNAL_UNSIGNED_BYTE_ARRAY"; |
568 case EXTERNAL_SHORT_ARRAY_TYPE: return "EXTERNAL_SHORT_ARRAY"; | 570 case EXTERNAL_SHORT_ARRAY_TYPE: return "EXTERNAL_SHORT_ARRAY"; |
569 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | 571 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
570 return "EXTERNAL_UNSIGNED_SHORT_ARRAY"; | 572 return "EXTERNAL_UNSIGNED_SHORT_ARRAY"; |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 ASSERT(get(i)->IsTheHole()); | 1353 ASSERT(get(i)->IsTheHole()); |
1352 get(i)->Verify(); | 1354 get(i)->Verify(); |
1353 } | 1355 } |
1354 } | 1356 } |
1355 } | 1357 } |
1356 | 1358 |
1357 | 1359 |
1358 #endif // DEBUG | 1360 #endif // DEBUG |
1359 | 1361 |
1360 } } // namespace v8::internal | 1362 } } // namespace v8::internal |
OLD | NEW |