OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_CALL_INTERFACE_DESCRIPTOR_H_ | 5 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_ |
6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ | 6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 #define DEFINE_TFS_BUILTIN_DESCRIPTOR(Name, ...) \ | 878 #define DEFINE_TFS_BUILTIN_DESCRIPTOR(Name, ...) \ |
879 class Name##Descriptor : public CallInterfaceDescriptor { \ | 879 class Name##Descriptor : public CallInterfaceDescriptor { \ |
880 public: \ | 880 public: \ |
881 DEFINE_PARAMETERS(__VA_ARGS__) \ | 881 DEFINE_PARAMETERS(__VA_ARGS__) \ |
882 DECLARE_DEFAULT_DESCRIPTOR(Name##Descriptor, CallInterfaceDescriptor, \ | 882 DECLARE_DEFAULT_DESCRIPTOR(Name##Descriptor, CallInterfaceDescriptor, \ |
883 kParameterCount) \ | 883 kParameterCount) \ |
884 }; | 884 }; |
885 BUILTIN_LIST_TFS(DEFINE_TFS_BUILTIN_DESCRIPTOR) | 885 BUILTIN_LIST_TFS(DEFINE_TFS_BUILTIN_DESCRIPTOR) |
886 #undef DEFINE_TFS_BUILTIN_DESCRIPTOR | 886 #undef DEFINE_TFS_BUILTIN_DESCRIPTOR |
887 | 887 |
| 888 #undef DECLARE_DEFAULT_DESCRIPTOR |
888 #undef DECLARE_DESCRIPTOR_WITH_BASE | 889 #undef DECLARE_DESCRIPTOR_WITH_BASE |
889 #undef DECLARE_DESCRIPTOR | 890 #undef DECLARE_DESCRIPTOR |
890 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE | 891 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE |
891 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG | 892 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG |
892 #undef DEFINE_PARAMETERS | 893 #undef DEFINE_PARAMETERS |
893 | 894 |
894 // We define the association between CallDescriptors::Key and the specialized | 895 // We define the association between CallDescriptors::Key and the specialized |
895 // descriptor here to reduce boilerplate and mistakes. | 896 // descriptor here to reduce boilerplate and mistakes. |
896 #define DEF_KEY(name, ...) \ | 897 #define DEF_KEY(name, ...) \ |
897 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 898 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
898 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 899 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
899 #undef DEF_KEY | 900 #undef DEF_KEY |
900 } // namespace internal | 901 } // namespace internal |
901 } // namespace v8 | 902 } // namespace v8 |
902 | 903 |
903 | 904 |
904 #if V8_TARGET_ARCH_ARM64 | 905 #if V8_TARGET_ARCH_ARM64 |
905 #include "src/arm64/interface-descriptors-arm64.h" | 906 #include "src/arm64/interface-descriptors-arm64.h" |
906 #elif V8_TARGET_ARCH_ARM | 907 #elif V8_TARGET_ARCH_ARM |
907 #include "src/arm/interface-descriptors-arm.h" | 908 #include "src/arm/interface-descriptors-arm.h" |
908 #endif | 909 #endif |
909 | 910 |
910 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 911 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |