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 "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 V(LoadGlobalViaContext) \ | 84 V(LoadGlobalViaContext) \ |
85 V(StoreGlobalViaContext) \ | 85 V(StoreGlobalViaContext) \ |
86 V(MathPowTagged) \ | 86 V(MathPowTagged) \ |
87 V(MathPowInteger) \ | 87 V(MathPowInteger) \ |
88 V(ContextOnly) \ | 88 V(ContextOnly) \ |
89 V(GrowArrayElements) \ | 89 V(GrowArrayElements) \ |
90 V(InterpreterDispatch) \ | 90 V(InterpreterDispatch) \ |
91 V(InterpreterPushArgsAndCall) \ | 91 V(InterpreterPushArgsAndCall) \ |
92 V(InterpreterPushArgsAndConstruct) \ | 92 V(InterpreterPushArgsAndConstruct) \ |
93 V(InterpreterCEntry) \ | 93 V(InterpreterCEntry) \ |
94 V(ResumeGenerator) | 94 V(ResumeGenerator) \ |
| 95 V(AtomicsLoad) |
95 | 96 |
96 class CallInterfaceDescriptorData { | 97 class CallInterfaceDescriptorData { |
97 public: | 98 public: |
98 CallInterfaceDescriptorData() | 99 CallInterfaceDescriptorData() |
99 : register_param_count_(-1), function_type_(nullptr) {} | 100 : register_param_count_(-1), function_type_(nullptr) {} |
100 | 101 |
101 // A copy of the passed in registers and param_representations is made | 102 // A copy of the passed in registers and param_representations is made |
102 // and owned by the CallInterfaceDescriptorData. | 103 // and owned by the CallInterfaceDescriptorData. |
103 | 104 |
104 void InitializePlatformIndependent(FunctionType* function_type) { | 105 void InitializePlatformIndependent(FunctionType* function_type) { |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { | 822 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { |
822 public: | 823 public: |
823 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) | 824 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) |
824 }; | 825 }; |
825 | 826 |
826 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { | 827 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { |
827 public: | 828 public: |
828 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) | 829 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) |
829 }; | 830 }; |
830 | 831 |
| 832 class AtomicsLoadDescriptor : public CallInterfaceDescriptor { |
| 833 public: |
| 834 DECLARE_DESCRIPTOR(AtomicsLoadDescriptor, CallInterfaceDescriptor) |
| 835 }; |
| 836 |
831 #undef DECLARE_DESCRIPTOR_WITH_BASE | 837 #undef DECLARE_DESCRIPTOR_WITH_BASE |
832 #undef DECLARE_DESCRIPTOR | 838 #undef DECLARE_DESCRIPTOR |
833 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE | 839 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE |
834 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG | 840 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG |
835 | 841 |
836 // We define the association between CallDescriptors::Key and the specialized | 842 // We define the association between CallDescriptors::Key and the specialized |
837 // descriptor here to reduce boilerplate and mistakes. | 843 // descriptor here to reduce boilerplate and mistakes. |
838 #define DEF_KEY(name) \ | 844 #define DEF_KEY(name) \ |
839 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 845 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
840 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 846 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
841 #undef DEF_KEY | 847 #undef DEF_KEY |
842 } // namespace internal | 848 } // namespace internal |
843 } // namespace v8 | 849 } // namespace v8 |
844 | 850 |
845 | 851 |
846 #if V8_TARGET_ARCH_ARM64 | 852 #if V8_TARGET_ARCH_ARM64 |
847 #include "src/arm64/interface-descriptors-arm64.h" | 853 #include "src/arm64/interface-descriptors-arm64.h" |
848 #elif V8_TARGET_ARCH_ARM | 854 #elif V8_TARGET_ARCH_ARM |
849 #include "src/arm/interface-descriptors-arm.h" | 855 #include "src/arm/interface-descriptors-arm.h" |
850 #endif | 856 #endif |
851 | 857 |
852 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 858 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |