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

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

Issue 436001: Remove the different length string types... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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.cc ('k') | src/objects-inl.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 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 map()->NextFreePropertyIndex())); 540 map()->NextFreePropertyIndex()));
541 } 541 }
542 } 542 }
543 543
544 544
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 SHORT_SYMBOL_TYPE: 550 case SYMBOL_TYPE: return "SYMBOL";
551 case MEDIUM_SYMBOL_TYPE: 551 case ASCII_SYMBOL_TYPE: return "ASCII_SYMBOL";
552 case LONG_SYMBOL_TYPE: return "SYMBOL"; 552 case CONS_SYMBOL_TYPE: return "CONS_SYMBOL";
553 case SHORT_ASCII_SYMBOL_TYPE: 553 case CONS_ASCII_SYMBOL_TYPE: return "CONS_ASCII_SYMBOL";
554 case MEDIUM_ASCII_SYMBOL_TYPE: 554 case EXTERNAL_ASCII_SYMBOL_TYPE:
555 case LONG_ASCII_SYMBOL_TYPE: return "ASCII_SYMBOL"; 555 case EXTERNAL_SYMBOL_TYPE: return "EXTERNAL_SYMBOL";
556 case SHORT_CONS_SYMBOL_TYPE: 556 case ASCII_STRING_TYPE: return "ASCII_STRING";
557 case MEDIUM_CONS_SYMBOL_TYPE: 557 case STRING_TYPE: return "TWO_BYTE_STRING";
558 case LONG_CONS_SYMBOL_TYPE: return "CONS_SYMBOL"; 558 case CONS_STRING_TYPE:
559 case SHORT_CONS_ASCII_SYMBOL_TYPE: 559 case CONS_ASCII_STRING_TYPE: return "CONS_STRING";
560 case MEDIUM_CONS_ASCII_SYMBOL_TYPE: 560 case EXTERNAL_ASCII_STRING_TYPE:
561 case LONG_CONS_ASCII_SYMBOL_TYPE: return "CONS_ASCII_SYMBOL"; 561 case EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING";
562 case SHORT_EXTERNAL_ASCII_SYMBOL_TYPE:
563 case MEDIUM_EXTERNAL_ASCII_SYMBOL_TYPE:
564 case LONG_EXTERNAL_ASCII_SYMBOL_TYPE:
565 case SHORT_EXTERNAL_SYMBOL_TYPE:
566 case MEDIUM_EXTERNAL_SYMBOL_TYPE:
567 case LONG_EXTERNAL_SYMBOL_TYPE: return "EXTERNAL_SYMBOL";
568 case SHORT_ASCII_STRING_TYPE:
569 case MEDIUM_ASCII_STRING_TYPE:
570 case LONG_ASCII_STRING_TYPE: return "ASCII_STRING";
571 case SHORT_STRING_TYPE:
572 case MEDIUM_STRING_TYPE:
573 case LONG_STRING_TYPE: return "TWO_BYTE_STRING";
574 case SHORT_CONS_STRING_TYPE:
575 case MEDIUM_CONS_STRING_TYPE:
576 case LONG_CONS_STRING_TYPE:
577 case SHORT_CONS_ASCII_STRING_TYPE:
578 case MEDIUM_CONS_ASCII_STRING_TYPE:
579 case LONG_CONS_ASCII_STRING_TYPE: return "CONS_STRING";
580 case SHORT_EXTERNAL_ASCII_STRING_TYPE:
581 case MEDIUM_EXTERNAL_ASCII_STRING_TYPE:
582 case LONG_EXTERNAL_ASCII_STRING_TYPE:
583 case SHORT_EXTERNAL_STRING_TYPE:
584 case MEDIUM_EXTERNAL_STRING_TYPE:
585 case LONG_EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING";
586 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY"; 562 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY";
587 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY"; 563 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY";
588 case PIXEL_ARRAY_TYPE: return "PIXEL_ARRAY"; 564 case PIXEL_ARRAY_TYPE: return "PIXEL_ARRAY";
589 case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY"; 565 case EXTERNAL_BYTE_ARRAY_TYPE: return "EXTERNAL_BYTE_ARRAY";
590 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: 566 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE:
591 return "EXTERNAL_UNSIGNED_BYTE_ARRAY"; 567 return "EXTERNAL_UNSIGNED_BYTE_ARRAY";
592 case EXTERNAL_SHORT_ARRAY_TYPE: return "EXTERNAL_SHORT_ARRAY"; 568 case EXTERNAL_SHORT_ARRAY_TYPE: return "EXTERNAL_SHORT_ARRAY";
593 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: 569 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE:
594 return "EXTERNAL_UNSIGNED_SHORT_ARRAY"; 570 return "EXTERNAL_UNSIGNED_SHORT_ARRAY";
595 case EXTERNAL_INT_ARRAY_TYPE: return "EXTERNAL_INT_ARRAY"; 571 case EXTERNAL_INT_ARRAY_TYPE: return "EXTERNAL_INT_ARRAY";
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 } 1296 }
1321 current = hash; 1297 current = hash;
1322 } 1298 }
1323 return true; 1299 return true;
1324 } 1300 }
1325 1301
1326 1302
1327 #endif // DEBUG 1303 #endif // DEBUG
1328 1304
1329 } } // namespace v8::internal 1305 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698