OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 STATIC_ASSERT(JS_OBJECT_TYPE == Internals::kJSObjectType); | 771 STATIC_ASSERT(JS_OBJECT_TYPE == Internals::kJSObjectType); |
772 STATIC_ASSERT(JS_API_OBJECT_TYPE == Internals::kJSApiObjectType); | 772 STATIC_ASSERT(JS_API_OBJECT_TYPE == Internals::kJSApiObjectType); |
773 STATIC_ASSERT(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); | 773 STATIC_ASSERT(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); |
774 STATIC_ASSERT(ODDBALL_TYPE == Internals::kOddballType); | 774 STATIC_ASSERT(ODDBALL_TYPE == Internals::kOddballType); |
775 STATIC_ASSERT(FOREIGN_TYPE == Internals::kForeignType); | 775 STATIC_ASSERT(FOREIGN_TYPE == Internals::kForeignType); |
776 | 776 |
777 | 777 |
778 std::ostream& operator<<(std::ostream& os, InstanceType instance_type); | 778 std::ostream& operator<<(std::ostream& os, InstanceType instance_type); |
779 | 779 |
780 #define FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(V) \ | 780 #define FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(V) \ |
| 781 V(CODE_STUBS_TABLE_SUB_TYPE) \ |
781 V(CONTEXT_SUB_TYPE) \ | 782 V(CONTEXT_SUB_TYPE) \ |
782 V(COPY_ON_WRITE_SUB_TYPE) \ | 783 V(COPY_ON_WRITE_SUB_TYPE) \ |
783 V(DEOPTIMIZATION_DATA_SUB_TYPE) \ | 784 V(DEOPTIMIZATION_DATA_SUB_TYPE) \ |
784 V(DESCRIPTOR_ARRAY_SUB_TYPE) \ | 785 V(DESCRIPTOR_ARRAY_SUB_TYPE) \ |
| 786 V(EMBEDDED_OBJECT_SUB_TYPE) \ |
785 V(ENUM_CACHE_SUB_TYPE) \ | 787 V(ENUM_CACHE_SUB_TYPE) \ |
786 V(ENUM_INDICES_CACHE_SUB_TYPE) \ | 788 V(ENUM_INDICES_CACHE_SUB_TYPE) \ |
787 V(DICTIONARY_ELEMENTS_SUB_TYPE) \ | 789 V(DICTIONARY_ELEMENTS_SUB_TYPE) \ |
788 V(DICTIONARY_PROPERTIES_SUB_TYPE) \ | 790 V(DICTIONARY_PROPERTIES_SUB_TYPE) \ |
789 V(FAST_ELEMENTS_SUB_TYPE) \ | 791 V(FAST_ELEMENTS_SUB_TYPE) \ |
790 V(FAST_PROPERTIES_SUB_TYPE) \ | 792 V(FAST_PROPERTIES_SUB_TYPE) \ |
| 793 V(INTRINSIC_FUNCTION_NAMES_SUB_TYPE) \ |
791 V(LITERALS_ARRAY_SUB_TYPE) \ | 794 V(LITERALS_ARRAY_SUB_TYPE) \ |
792 V(MAP_CODE_CACHE_SUB_TYPE) \ | 795 V(MAP_CODE_CACHE_SUB_TYPE) \ |
| 796 V(NUMBER_STRING_CACHE_SUB_TYPE) \ |
793 V(OBJECT_TO_CODE_SUB_TYPE) \ | 797 V(OBJECT_TO_CODE_SUB_TYPE) \ |
794 V(RELOC_INFO_SUB_TYPE) \ | 798 V(REGEXP_MULTIPLE_CACHE_SUB_TYPE) \ |
795 V(SCOPE_INFO_SUB_TYPE) \ | 799 V(SCOPE_INFO_SUB_TYPE) \ |
796 V(SOURCE_POS_SUB_TYPE) \ | 800 V(SERIALIZED_TEMPLATES_SUB_TYPE) \ |
| 801 V(SHARED_FUNCTION_INFOS_SUB_TYPE) \ |
| 802 V(SINGLE_CHARACTER_STRING_CACHE_SUB_TYPE) \ |
| 803 V(STRING_SPLIT_CACHE_SUB_TYPE) \ |
797 V(STRING_TABLE_SUB_TYPE) \ | 804 V(STRING_TABLE_SUB_TYPE) \ |
| 805 V(TEMPLATE_INSTANTIATIONS_CACHE_SUB_TYPE) \ |
798 V(TYPE_FEEDBACK_VECTOR_SUB_TYPE) \ | 806 V(TYPE_FEEDBACK_VECTOR_SUB_TYPE) \ |
799 V(TYPE_FEEDBACK_METADATA_SUB_TYPE) \ | 807 V(TYPE_FEEDBACK_METADATA_SUB_TYPE) \ |
800 V(WEAK_COLLECTION_SUB_TYPE) | 808 V(WEAK_COLLECTION_SUB_TYPE) \ |
| 809 V(WEAK_NEW_SPACE_OBJECT_TO_CODE_SUB_TYPE) |
801 | 810 |
802 enum FixedArraySubInstanceType { | 811 enum FixedArraySubInstanceType { |
803 #define DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE(name) name, | 812 #define DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE(name) name, |
804 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE) | 813 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE) |
805 #undef DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE | 814 #undef DEFINE_FIXED_ARRAY_SUB_INSTANCE_TYPE |
806 LAST_FIXED_ARRAY_SUB_TYPE = WEAK_COLLECTION_SUB_TYPE | 815 LAST_FIXED_ARRAY_SUB_TYPE = WEAK_NEW_SPACE_OBJECT_TO_CODE_SUB_TYPE |
807 }; | 816 }; |
808 | 817 |
809 | 818 |
810 // TODO(bmeurer): Remove this in favor of the ComparisonResult below. | 819 // TODO(bmeurer): Remove this in favor of the ComparisonResult below. |
811 enum CompareResult { | 820 enum CompareResult { |
812 LESS = -1, | 821 LESS = -1, |
813 EQUAL = 0, | 822 EQUAL = 0, |
814 GREATER = 1, | 823 GREATER = 1, |
815 | 824 |
816 NOT_EQUAL = GREATER | 825 NOT_EQUAL = GREATER |
(...skipping 10175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10992 } | 11001 } |
10993 return value; | 11002 return value; |
10994 } | 11003 } |
10995 }; | 11004 }; |
10996 | 11005 |
10997 | 11006 |
10998 } // NOLINT, false-positive due to second-order macros. | 11007 } // NOLINT, false-positive due to second-order macros. |
10999 } // NOLINT, false-positive due to second-order macros. | 11008 } // NOLINT, false-positive due to second-order macros. |
11000 | 11009 |
11001 #endif // V8_OBJECTS_H_ | 11010 #endif // V8_OBJECTS_H_ |
OLD | NEW |