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

Side by Side Diff: src/objects.h

Issue 11857015: Remove move ascii data hint for one byte strings (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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/ia32/macro-assembler-ia32.cc ('k') | src/objects-debug.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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 const uint32_t kShortcutTypeMask = 531 const uint32_t kShortcutTypeMask =
532 kIsNotStringMask | 532 kIsNotStringMask |
533 kIsSymbolMask | 533 kIsSymbolMask |
534 kStringRepresentationMask; 534 kStringRepresentationMask;
535 const uint32_t kShortcutTypeTag = kConsStringTag; 535 const uint32_t kShortcutTypeTag = kConsStringTag;
536 536
537 537
538 enum InstanceType { 538 enum InstanceType {
539 // String types. 539 // String types.
540 SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kSeqStringTag, 540 SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kSeqStringTag,
541 ASCII_SYMBOL_TYPE = kOneByteStringTag | kAsciiDataHintTag | kSymbolTag | 541 ASCII_SYMBOL_TYPE = kOneByteStringTag | kSymbolTag | kSeqStringTag,
542 kSeqStringTag,
543 CONS_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kConsStringTag, 542 CONS_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kConsStringTag,
544 CONS_ASCII_SYMBOL_TYPE = kOneByteStringTag | kAsciiDataHintTag | kSymbolTag | 543 CONS_ASCII_SYMBOL_TYPE = kOneByteStringTag | kSymbolTag | kConsStringTag,
545 kConsStringTag,
546 SHORT_EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | 544 SHORT_EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag |
547 kExternalStringTag | kShortExternalStringTag, 545 kExternalStringTag | kShortExternalStringTag,
548 SHORT_EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE = 546 SHORT_EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE =
549 kTwoByteStringTag | kSymbolTag | kExternalStringTag | 547 kTwoByteStringTag | kSymbolTag | kExternalStringTag |
550 kAsciiDataHintTag | kShortExternalStringTag, 548 kAsciiDataHintTag | kShortExternalStringTag,
551 SHORT_EXTERNAL_ASCII_SYMBOL_TYPE = kOneByteStringTag | kAsciiDataHintTag | 549 SHORT_EXTERNAL_ASCII_SYMBOL_TYPE = kOneByteStringTag | kExternalStringTag |
552 kExternalStringTag | kSymbolTag | 550 kSymbolTag | kShortExternalStringTag,
553 kShortExternalStringTag,
554 EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kExternalStringTag, 551 EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kExternalStringTag,
555 EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE = 552 EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE =
556 kTwoByteStringTag | kSymbolTag | kExternalStringTag | kAsciiDataHintTag, 553 kTwoByteStringTag | kSymbolTag | kExternalStringTag | kAsciiDataHintTag,
557 EXTERNAL_ASCII_SYMBOL_TYPE = 554 EXTERNAL_ASCII_SYMBOL_TYPE =
558 kOneByteStringTag | kAsciiDataHintTag | kSymbolTag | kExternalStringTag, 555 kOneByteStringTag | kSymbolTag | kExternalStringTag,
559 STRING_TYPE = kTwoByteStringTag | kSeqStringTag, 556 STRING_TYPE = kTwoByteStringTag | kSeqStringTag,
560 ASCII_STRING_TYPE = kOneByteStringTag | kAsciiDataHintTag | kSeqStringTag, 557 ASCII_STRING_TYPE = kOneByteStringTag | kSeqStringTag,
561 CONS_STRING_TYPE = kTwoByteStringTag | kConsStringTag, 558 CONS_STRING_TYPE = kTwoByteStringTag | kConsStringTag,
562 CONS_ASCII_STRING_TYPE = 559 CONS_ASCII_STRING_TYPE = kOneByteStringTag | kConsStringTag,
563 kOneByteStringTag | kAsciiDataHintTag | kConsStringTag,
564 SLICED_STRING_TYPE = kTwoByteStringTag | kSlicedStringTag, 560 SLICED_STRING_TYPE = kTwoByteStringTag | kSlicedStringTag,
565 SLICED_ASCII_STRING_TYPE = 561 SLICED_ASCII_STRING_TYPE = kOneByteStringTag | kSlicedStringTag,
566 kOneByteStringTag | kAsciiDataHintTag | kSlicedStringTag,
567 SHORT_EXTERNAL_STRING_TYPE = 562 SHORT_EXTERNAL_STRING_TYPE =
568 kTwoByteStringTag | kExternalStringTag | kShortExternalStringTag, 563 kTwoByteStringTag | kExternalStringTag | kShortExternalStringTag,
569 SHORT_EXTERNAL_STRING_WITH_ASCII_DATA_TYPE = 564 SHORT_EXTERNAL_STRING_WITH_ASCII_DATA_TYPE =
570 kTwoByteStringTag | kExternalStringTag | 565 kTwoByteStringTag | kExternalStringTag |
571 kAsciiDataHintTag | kShortExternalStringTag, 566 kAsciiDataHintTag | kShortExternalStringTag,
572 SHORT_EXTERNAL_ASCII_STRING_TYPE = 567 SHORT_EXTERNAL_ASCII_STRING_TYPE =
573 kOneByteStringTag | kAsciiDataHintTag | 568 kOneByteStringTag | kExternalStringTag | kShortExternalStringTag,
574 kExternalStringTag | kShortExternalStringTag,
575 EXTERNAL_STRING_TYPE = kTwoByteStringTag | kExternalStringTag, 569 EXTERNAL_STRING_TYPE = kTwoByteStringTag | kExternalStringTag,
576 EXTERNAL_STRING_WITH_ASCII_DATA_TYPE = 570 EXTERNAL_STRING_WITH_ASCII_DATA_TYPE =
577 kTwoByteStringTag | kExternalStringTag | kAsciiDataHintTag, 571 kTwoByteStringTag | kExternalStringTag | kAsciiDataHintTag,
578 // LAST_STRING_TYPE 572 // LAST_STRING_TYPE
579 EXTERNAL_ASCII_STRING_TYPE = 573 EXTERNAL_ASCII_STRING_TYPE = kOneByteStringTag | kExternalStringTag,
580 kOneByteStringTag | kAsciiDataHintTag | kExternalStringTag,
581 PRIVATE_EXTERNAL_ASCII_STRING_TYPE = EXTERNAL_ASCII_STRING_TYPE, 574 PRIVATE_EXTERNAL_ASCII_STRING_TYPE = EXTERNAL_ASCII_STRING_TYPE,
582 575
583 // Objects allocated in their own spaces (never in new space). 576 // Objects allocated in their own spaces (never in new space).
584 MAP_TYPE = kNotStringTag, // FIRST_NONSTRING_TYPE 577 MAP_TYPE = kNotStringTag, // FIRST_NONSTRING_TYPE
585 CODE_TYPE, 578 CODE_TYPE,
586 ODDBALL_TYPE, 579 ODDBALL_TYPE,
587 JS_GLOBAL_PROPERTY_CELL_TYPE, 580 JS_GLOBAL_PROPERTY_CELL_TYPE,
588 581
589 // "Data", objects that cannot contain non-map-word pointers to heap 582 // "Data", objects that cannot contain non-map-word pointers to heap
590 // objects. 583 // objects.
(...skipping 8242 matching lines...) Expand 10 before | Expand all | Expand 10 after
8833 } else { 8826 } else {
8834 value &= ~(1 << bit_position); 8827 value &= ~(1 << bit_position);
8835 } 8828 }
8836 return value; 8829 return value;
8837 } 8830 }
8838 }; 8831 };
8839 8832
8840 } } // namespace v8::internal 8833 } } // namespace v8::internal
8841 8834
8842 #endif // V8_OBJECTS_H_ 8835 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698