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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 V(ArgumentsAccessNew) \ | 70 V(ArgumentsAccessNew) \ |
71 V(RestParamAccess) \ | 71 V(RestParamAccess) \ |
72 V(LoadGlobalViaContext) \ | 72 V(LoadGlobalViaContext) \ |
73 V(StoreGlobalViaContext) \ | 73 V(StoreGlobalViaContext) \ |
74 V(MathPowTagged) \ | 74 V(MathPowTagged) \ |
75 V(MathPowInteger) \ | 75 V(MathPowInteger) \ |
76 V(ContextOnly) \ | 76 V(ContextOnly) \ |
77 V(GrowArrayElements) \ | 77 V(GrowArrayElements) \ |
78 V(InterpreterPushArgsAndCall) \ | 78 V(InterpreterPushArgsAndCall) \ |
79 V(InterpreterPushArgsAndConstruct) \ | 79 V(InterpreterPushArgsAndConstruct) \ |
80 V(InterpreterCEntry) | 80 V(InterpreterCEntry) \ |
| 81 V(AtomicsLoad) |
81 | 82 |
82 | 83 |
83 class CallInterfaceDescriptorData { | 84 class CallInterfaceDescriptorData { |
84 public: | 85 public: |
85 CallInterfaceDescriptorData() | 86 CallInterfaceDescriptorData() |
86 : register_param_count_(-1), function_type_(nullptr) {} | 87 : register_param_count_(-1), function_type_(nullptr) {} |
87 | 88 |
88 // A copy of the passed in registers and param_representations is made | 89 // A copy of the passed in registers and param_representations is made |
89 // and owned by the CallInterfaceDescriptorData. | 90 // and owned by the CallInterfaceDescriptorData. |
90 | 91 |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 CallInterfaceDescriptor) | 768 CallInterfaceDescriptor) |
768 }; | 769 }; |
769 | 770 |
770 | 771 |
771 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { | 772 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { |
772 public: | 773 public: |
773 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) | 774 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) |
774 }; | 775 }; |
775 | 776 |
776 | 777 |
| 778 class AtomicsLoadDescriptor : public CallInterfaceDescriptor { |
| 779 public: |
| 780 DECLARE_DESCRIPTOR(AtomicsLoadDescriptor, CallInterfaceDescriptor) |
| 781 }; |
| 782 |
777 #undef DECLARE_DESCRIPTOR | 783 #undef DECLARE_DESCRIPTOR |
778 | 784 |
779 | 785 |
780 // We define the association between CallDescriptors::Key and the specialized | 786 // We define the association between CallDescriptors::Key and the specialized |
781 // descriptor here to reduce boilerplate and mistakes. | 787 // descriptor here to reduce boilerplate and mistakes. |
782 #define DEF_KEY(name) \ | 788 #define DEF_KEY(name) \ |
783 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 789 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
784 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 790 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
785 #undef DEF_KEY | 791 #undef DEF_KEY |
786 } // namespace internal | 792 } // namespace internal |
787 } // namespace v8 | 793 } // namespace v8 |
788 | 794 |
789 | 795 |
790 #if V8_TARGET_ARCH_ARM64 | 796 #if V8_TARGET_ARCH_ARM64 |
791 #include "src/arm64/interface-descriptors-arm64.h" | 797 #include "src/arm64/interface-descriptors-arm64.h" |
792 #elif V8_TARGET_ARCH_ARM | 798 #elif V8_TARGET_ARCH_ARM |
793 #include "src/arm/interface-descriptors-arm.h" | 799 #include "src/arm/interface-descriptors-arm.h" |
794 #endif | 800 #endif |
795 | 801 |
796 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 802 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |