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