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

Side by Side Diff: src/objects.h

Issue 11931013: Revert trunk to version 3.16.4. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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/messages.js ('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 | kSymbolTag | kSeqStringTag, 541 ASCII_SYMBOL_TYPE = kOneByteStringTag | kAsciiDataHintTag | kSymbolTag |
542 kSeqStringTag,
542 CONS_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kConsStringTag, 543 CONS_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kConsStringTag,
543 CONS_ASCII_SYMBOL_TYPE = kOneByteStringTag | kSymbolTag | kConsStringTag, 544 CONS_ASCII_SYMBOL_TYPE = kOneByteStringTag | kAsciiDataHintTag | kSymbolTag |
545 kConsStringTag,
544 SHORT_EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | 546 SHORT_EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag |
545 kExternalStringTag | kShortExternalStringTag, 547 kExternalStringTag | kShortExternalStringTag,
546 SHORT_EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE = 548 SHORT_EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE =
547 kTwoByteStringTag | kSymbolTag | kExternalStringTag | 549 kTwoByteStringTag | kSymbolTag | kExternalStringTag |
548 kAsciiDataHintTag | kShortExternalStringTag, 550 kAsciiDataHintTag | kShortExternalStringTag,
549 SHORT_EXTERNAL_ASCII_SYMBOL_TYPE = kOneByteStringTag | kExternalStringTag | 551 SHORT_EXTERNAL_ASCII_SYMBOL_TYPE = kOneByteStringTag | kAsciiDataHintTag |
550 kSymbolTag | kShortExternalStringTag, 552 kExternalStringTag | kSymbolTag |
553 kShortExternalStringTag,
551 EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kExternalStringTag, 554 EXTERNAL_SYMBOL_TYPE = kTwoByteStringTag | kSymbolTag | kExternalStringTag,
552 EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE = 555 EXTERNAL_SYMBOL_WITH_ASCII_DATA_TYPE =
553 kTwoByteStringTag | kSymbolTag | kExternalStringTag | kAsciiDataHintTag, 556 kTwoByteStringTag | kSymbolTag | kExternalStringTag | kAsciiDataHintTag,
554 EXTERNAL_ASCII_SYMBOL_TYPE = 557 EXTERNAL_ASCII_SYMBOL_TYPE =
555 kOneByteStringTag | kSymbolTag | kExternalStringTag, 558 kOneByteStringTag | kAsciiDataHintTag | kSymbolTag | kExternalStringTag,
556 STRING_TYPE = kTwoByteStringTag | kSeqStringTag, 559 STRING_TYPE = kTwoByteStringTag | kSeqStringTag,
557 ASCII_STRING_TYPE = kOneByteStringTag | kSeqStringTag, 560 ASCII_STRING_TYPE = kOneByteStringTag | kAsciiDataHintTag | kSeqStringTag,
558 CONS_STRING_TYPE = kTwoByteStringTag | kConsStringTag, 561 CONS_STRING_TYPE = kTwoByteStringTag | kConsStringTag,
559 CONS_ASCII_STRING_TYPE = kOneByteStringTag | kConsStringTag, 562 CONS_ASCII_STRING_TYPE =
563 kOneByteStringTag | kAsciiDataHintTag | kConsStringTag,
560 SLICED_STRING_TYPE = kTwoByteStringTag | kSlicedStringTag, 564 SLICED_STRING_TYPE = kTwoByteStringTag | kSlicedStringTag,
561 SLICED_ASCII_STRING_TYPE = kOneByteStringTag | kSlicedStringTag, 565 SLICED_ASCII_STRING_TYPE =
566 kOneByteStringTag | kAsciiDataHintTag | kSlicedStringTag,
562 SHORT_EXTERNAL_STRING_TYPE = 567 SHORT_EXTERNAL_STRING_TYPE =
563 kTwoByteStringTag | kExternalStringTag | kShortExternalStringTag, 568 kTwoByteStringTag | kExternalStringTag | kShortExternalStringTag,
564 SHORT_EXTERNAL_STRING_WITH_ASCII_DATA_TYPE = 569 SHORT_EXTERNAL_STRING_WITH_ASCII_DATA_TYPE =
565 kTwoByteStringTag | kExternalStringTag | 570 kTwoByteStringTag | kExternalStringTag |
566 kAsciiDataHintTag | kShortExternalStringTag, 571 kAsciiDataHintTag | kShortExternalStringTag,
567 SHORT_EXTERNAL_ASCII_STRING_TYPE = 572 SHORT_EXTERNAL_ASCII_STRING_TYPE =
568 kOneByteStringTag | kExternalStringTag | kShortExternalStringTag, 573 kOneByteStringTag | kAsciiDataHintTag |
574 kExternalStringTag | kShortExternalStringTag,
569 EXTERNAL_STRING_TYPE = kTwoByteStringTag | kExternalStringTag, 575 EXTERNAL_STRING_TYPE = kTwoByteStringTag | kExternalStringTag,
570 EXTERNAL_STRING_WITH_ASCII_DATA_TYPE = 576 EXTERNAL_STRING_WITH_ASCII_DATA_TYPE =
571 kTwoByteStringTag | kExternalStringTag | kAsciiDataHintTag, 577 kTwoByteStringTag | kExternalStringTag | kAsciiDataHintTag,
572 // LAST_STRING_TYPE 578 // LAST_STRING_TYPE
573 EXTERNAL_ASCII_STRING_TYPE = kOneByteStringTag | kExternalStringTag, 579 EXTERNAL_ASCII_STRING_TYPE =
580 kOneByteStringTag | kAsciiDataHintTag | kExternalStringTag,
574 PRIVATE_EXTERNAL_ASCII_STRING_TYPE = EXTERNAL_ASCII_STRING_TYPE, 581 PRIVATE_EXTERNAL_ASCII_STRING_TYPE = EXTERNAL_ASCII_STRING_TYPE,
575 582
576 // Objects allocated in their own spaces (never in new space). 583 // Objects allocated in their own spaces (never in new space).
577 MAP_TYPE = kNotStringTag, // FIRST_NONSTRING_TYPE 584 MAP_TYPE = kNotStringTag, // FIRST_NONSTRING_TYPE
578 CODE_TYPE, 585 CODE_TYPE,
579 ODDBALL_TYPE, 586 ODDBALL_TYPE,
580 JS_GLOBAL_PROPERTY_CELL_TYPE, 587 JS_GLOBAL_PROPERTY_CELL_TYPE,
581 588
582 // "Data", objects that cannot contain non-map-word pointers to heap 589 // "Data", objects that cannot contain non-map-word pointers to heap
583 // objects. 590 // objects.
(...skipping 8243 matching lines...) Expand 10 before | Expand all | Expand 10 after
8827 } else { 8834 } else {
8828 value &= ~(1 << bit_position); 8835 value &= ~(1 << bit_position);
8829 } 8836 }
8830 return value; 8837 return value;
8831 } 8838 }
8832 }; 8839 };
8833 8840
8834 } } // namespace v8::internal 8841 } } // namespace v8::internal
8835 8842
8836 #endif // V8_OBJECTS_H_ 8843 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698