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

Side by Side Diff: src/objects.h

Issue 11293246: Reverting r12937. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/code-stubs-ia32.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 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 const uint32_t kShortcutTypeMask = 523 const uint32_t kShortcutTypeMask =
524 kIsNotStringMask | 524 kIsNotStringMask |
525 kIsSymbolMask | 525 kIsSymbolMask |
526 kStringRepresentationMask; 526 kStringRepresentationMask;
527 const uint32_t kShortcutTypeTag = kConsStringTag; 527 const uint32_t kShortcutTypeTag = kConsStringTag;
528 528
529 529
530 enum InstanceType { 530 enum InstanceType {
531 // String types. 531 // String types.
532 SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kSeqStringTag, 532 SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kSeqStringTag,
533 ASCII_SYMBOL_TYPE = kOneByteStringTag | kAsciiDataHintTag | kSymbolTag | 533 ASCII_SYMBOL_TYPE = kOneByteStringTag | kSymbolTag | kSeqStringTag,
534 kSeqStringTag,
535 CONS_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kConsStringTag, 534 CONS_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kConsStringTag,
536 CONS_ASCII_SYMBOL_TYPE = kOneByteStringTag | kAsciiDataHintTag | kSymbolTag | 535 CONS_ASCII_SYMBOL_TYPE = kOneByteStringTag | kSymbolTag | kConsStringTag,
537 kConsStringTag,
538 SHORT_EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | 536 SHORT_EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag |
539 kExternalStringTag | kShortExternalStringTag, 537 kExternalStringTag | kShortExternalStringTag,
540 SHORT_EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE = 538 SHORT_EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE =
541 kTwoByteStringTag | kSymbolTag | kExternalStringTag | 539 kTwoByteStringTag | kSymbolTag | kExternalStringTag |
542 kAsciiDataHintTag | kShortExternalStringTag, 540 kAsciiDataHintTag | kShortExternalStringTag,
543 SHORT_EXTERNAL_ASCII_SYMBOL_TYPE = kOneByteStringTag | kAsciiDataHintTag | 541 SHORT_EXTERNAL_ASCII_SYMBOL_TYPE = kOneByteStringTag | kExternalStringTag |
544 kExternalStringTag | kSymbolTag | 542 kSymbolTag | kShortExternalStringTag,
545 kShortExternalStringTag,
546 EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kExternalStringTag, 543 EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kExternalStringTag,
547 EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE = 544 EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE =
548 kTwoByteStringTag | kSymbolTag | kExternalStringTag | kAsciiDataHintTag, 545 kTwoByteStringTag | kSymbolTag | kExternalStringTag | kAsciiDataHintTag,
549 EXTERNAL_ASCII_SYMBOL_TYPE = 546 EXTERNAL_ASCII_SYMBOL_TYPE =
550 kOneByteStringTag | kAsciiDataHintTag | kSymbolTag | kExternalStringTag, 547 kOneByteStringTag | kSymbolTag | kExternalStringTag,
551 STRING_TYPE = kTwoByteStringTag | kSeqStringTag, 548 STRING_TYPE = kTwoByteStringTag | kSeqStringTag,
552 ASCII_STRING_TYPE = kOneByteStringTag | kAsciiDataHintTag | kSeqStringTag, 549 ASCII_STRING_TYPE = kOneByteStringTag | kSeqStringTag,
553 CONS_STRING_TYPE = kTwoByteStringTag | kConsStringTag, 550 CONS_STRING_TYPE = kTwoByteStringTag | kConsStringTag,
554 CONS_ASCII_STRING_TYPE = 551 CONS_ASCII_STRING_TYPE = kOneByteStringTag | kConsStringTag,
555 kOneByteStringTag | kAsciiDataHintTag | kConsStringTag,
556 SLICED_STRING_TYPE = kTwoByteStringTag | kSlicedStringTag, 552 SLICED_STRING_TYPE = kTwoByteStringTag | kSlicedStringTag,
557 SLICED_ASCII_STRING_TYPE = 553 SLICED_ASCII_STRING_TYPE = kOneByteStringTag | kSlicedStringTag,
558 kOneByteStringTag | kAsciiDataHintTag | kSlicedStringTag,
559 SHORT_EXTERNAL_STRING_TYPE = 554 SHORT_EXTERNAL_STRING_TYPE =
560 kTwoByteStringTag | kExternalStringTag | kShortExternalStringTag, 555 kTwoByteStringTag | kExternalStringTag | kShortExternalStringTag,
561 SHORT_EXTERNAL_STRING_WITH_ASCII_DATA_TYPE = 556 SHORT_EXTERNAL_STRING_WITH_ASCII_DATA_TYPE =
562 kTwoByteStringTag | kExternalStringTag | 557 kTwoByteStringTag | kExternalStringTag |
563 kAsciiDataHintTag | kShortExternalStringTag, 558 kAsciiDataHintTag | kShortExternalStringTag,
564 SHORT_EXTERNAL_ASCII_STRING_TYPE = 559 SHORT_EXTERNAL_ASCII_STRING_TYPE =
565 kOneByteStringTag | kAsciiDataHintTag | 560 kOneByteStringTag | kExternalStringTag | kShortExternalStringTag,
566 kExternalStringTag | kShortExternalStringTag,
567 EXTERNAL_STRING_TYPE = kTwoByteStringTag | kExternalStringTag, 561 EXTERNAL_STRING_TYPE = kTwoByteStringTag | kExternalStringTag,
568 EXTERNAL_STRING_WITH_ASCII_DATA_TYPE = 562 EXTERNAL_STRING_WITH_ASCII_DATA_TYPE =
569 kTwoByteStringTag | kExternalStringTag | kAsciiDataHintTag, 563 kTwoByteStringTag | kExternalStringTag | kAsciiDataHintTag,
570 // LAST_STRING_TYPE 564 // LAST_STRING_TYPE
571 EXTERNAL_ASCII_STRING_TYPE = 565 EXTERNAL_ASCII_STRING_TYPE = kOneByteStringTag | kExternalStringTag,
572 kOneByteStringTag | kAsciiDataHintTag | kExternalStringTag,
573 PRIVATE_EXTERNAL_ASCII_STRING_TYPE = EXTERNAL_ASCII_STRING_TYPE, 566 PRIVATE_EXTERNAL_ASCII_STRING_TYPE = EXTERNAL_ASCII_STRING_TYPE,
574 567
575 // Objects allocated in their own spaces (never in new space). 568 // Objects allocated in their own spaces (never in new space).
576 MAP_TYPE = kNotStringTag, // FIRST_NONSTRING_TYPE 569 MAP_TYPE = kNotStringTag, // FIRST_NONSTRING_TYPE
577 CODE_TYPE, 570 CODE_TYPE,
578 ODDBALL_TYPE, 571 ODDBALL_TYPE,
579 JS_GLOBAL_PROPERTY_CELL_TYPE, 572 JS_GLOBAL_PROPERTY_CELL_TYPE,
580 573
581 // "Data", objects that cannot contain non-map-word pointers to heap 574 // "Data", objects that cannot contain non-map-word pointers to heap
582 // objects. 575 // objects.
(...skipping 8457 matching lines...) Expand 10 before | Expand all | Expand 10 after
9040 } else { 9033 } else {
9041 value &= ~(1 << bit_position); 9034 value &= ~(1 << bit_position);
9042 } 9035 }
9043 return value; 9036 return value;
9044 } 9037 }
9045 }; 9038 };
9046 9039
9047 } } // namespace v8::internal 9040 } } // namespace v8::internal
9048 9041
9049 #endif // V8_OBJECTS_H_ 9042 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698