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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 | 655 |
656 const int kExternalArrayTypeCount = | 656 const int kExternalArrayTypeCount = |
657 LAST_EXTERNAL_ARRAY_TYPE - FIRST_EXTERNAL_ARRAY_TYPE + 1; | 657 LAST_EXTERNAL_ARRAY_TYPE - FIRST_EXTERNAL_ARRAY_TYPE + 1; |
658 | 658 |
659 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); | 659 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); |
660 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); | 660 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); |
661 STATIC_CHECK(ODDBALL_TYPE == Internals::kOddballType); | 661 STATIC_CHECK(ODDBALL_TYPE == Internals::kOddballType); |
662 STATIC_CHECK(FOREIGN_TYPE == Internals::kForeignType); | 662 STATIC_CHECK(FOREIGN_TYPE == Internals::kForeignType); |
663 | 663 |
664 | 664 |
| 665 #define FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(V) \ |
| 666 V(FAST_ELEMENTS_SUB_TYPE) \ |
| 667 V(DICTIONARY_ELEMENTS_SUB_TYPE) \ |
| 668 V(FAST_PROPERTIES_SUB_TYPE) \ |
| 669 V(DICTIONARY_PROPERTIES_SUB_TYPE) \ |
| 670 V(MAP_CODE_CACHE_SUB_TYPE) \ |
| 671 V(SCOPE_INFO_SUB_TYPE) \ |
| 672 V(SYMBOL_TABLE_SUB_TYPE) \ |
| 673 V(DESCRIPTOR_ARRAY_SUB_TYPE) \ |
| 674 V(TRANSITION_ARRAY_SUB_TYPE) |
| 675 |
| 676 enum FixedArraySubInstanceType { |
| 677 #define DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE(name) name, |
| 678 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE) |
| 679 #undef DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE |
| 680 LAST_FIXED_ARRAY_SUB_TYPE = TRANSITION_ARRAY_SUB_TYPE |
| 681 }; |
| 682 |
| 683 |
665 enum CompareResult { | 684 enum CompareResult { |
666 LESS = -1, | 685 LESS = -1, |
667 EQUAL = 0, | 686 EQUAL = 0, |
668 GREATER = 1, | 687 GREATER = 1, |
669 | 688 |
670 NOT_EQUAL = GREATER | 689 NOT_EQUAL = GREATER |
671 }; | 690 }; |
672 | 691 |
673 | 692 |
674 #define DECL_BOOLEAN_ACCESSORS(name) \ | 693 #define DECL_BOOLEAN_ACCESSORS(name) \ |
(...skipping 8221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8896 } else { | 8915 } else { |
8897 value &= ~(1 << bit_position); | 8916 value &= ~(1 << bit_position); |
8898 } | 8917 } |
8899 return value; | 8918 return value; |
8900 } | 8919 } |
8901 }; | 8920 }; |
8902 | 8921 |
8903 } } // namespace v8::internal | 8922 } } // namespace v8::internal |
8904 | 8923 |
8905 #endif // V8_OBJECTS_H_ | 8924 #endif // V8_OBJECTS_H_ |
OLD | NEW |