OLD | NEW |
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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 | 647 |
648 const int kExternalArrayTypeCount = | 648 const int kExternalArrayTypeCount = |
649 LAST_EXTERNAL_ARRAY_TYPE - FIRST_EXTERNAL_ARRAY_TYPE + 1; | 649 LAST_EXTERNAL_ARRAY_TYPE - FIRST_EXTERNAL_ARRAY_TYPE + 1; |
650 | 650 |
651 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); | 651 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); |
652 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); | 652 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); |
653 STATIC_CHECK(ODDBALL_TYPE == Internals::kOddballType); | 653 STATIC_CHECK(ODDBALL_TYPE == Internals::kOddballType); |
654 STATIC_CHECK(FOREIGN_TYPE == Internals::kForeignType); | 654 STATIC_CHECK(FOREIGN_TYPE == Internals::kForeignType); |
655 | 655 |
656 | 656 |
| 657 #define FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(V) \ |
| 658 V(FAST_ELEMENTS_SUB_TYPE) \ |
| 659 V(DICTIONARY_ELEMENTS_SUB_TYPE) \ |
| 660 V(FAST_PROPERTIES_SUB_TYPE) \ |
| 661 V(DICTIONARY_PROPERTIES_SUB_TYPE) \ |
| 662 V(MAP_CODE_CACHE_SUB_TYPE) \ |
| 663 V(SCOPE_INFO_SUB_TYPE) \ |
| 664 V(SYMBOL_TABLE_SUB_TYPE) \ |
| 665 V(DESCRIPTOR_ARRAY_SUB_TYPE) \ |
| 666 V(TRANSITION_ARRAY_SUB_TYPE) |
| 667 |
| 668 enum FixedArraySubInstanceType { |
| 669 #define DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE(name) name, |
| 670 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE) |
| 671 #undef DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE |
| 672 LAST_FIXED_ARRAY_SUB_TYPE = TRANSITION_ARRAY_SUB_TYPE |
| 673 }; |
| 674 |
| 675 |
657 enum CompareResult { | 676 enum CompareResult { |
658 LESS = -1, | 677 LESS = -1, |
659 EQUAL = 0, | 678 EQUAL = 0, |
660 GREATER = 1, | 679 GREATER = 1, |
661 | 680 |
662 NOT_EQUAL = GREATER | 681 NOT_EQUAL = GREATER |
663 }; | 682 }; |
664 | 683 |
665 | 684 |
666 #define DECL_BOOLEAN_ACCESSORS(name) \ | 685 #define DECL_BOOLEAN_ACCESSORS(name) \ |
(...skipping 8212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8879 } else { | 8898 } else { |
8880 value &= ~(1 << bit_position); | 8899 value &= ~(1 << bit_position); |
8881 } | 8900 } |
8882 return value; | 8901 return value; |
8883 } | 8902 } |
8884 }; | 8903 }; |
8885 | 8904 |
8886 } } // namespace v8::internal | 8905 } } // namespace v8::internal |
8887 | 8906 |
8888 #endif // V8_OBJECTS_H_ | 8907 #endif // V8_OBJECTS_H_ |
OLD | NEW |