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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 V(StoreArrayLiteralElement) \ | 64 V(StoreArrayLiteralElement) \ |
65 V(LoadGlobalViaContext) \ | 65 V(LoadGlobalViaContext) \ |
66 V(StoreGlobalViaContext) \ | 66 V(StoreGlobalViaContext) \ |
67 V(MathPowTagged) \ | 67 V(MathPowTagged) \ |
68 V(MathPowInteger) \ | 68 V(MathPowInteger) \ |
69 V(ContextOnly) \ | 69 V(ContextOnly) \ |
70 V(GrowArrayElements) \ | 70 V(GrowArrayElements) \ |
71 V(MathRoundVariantCallFromUnoptimizedCode) \ | 71 V(MathRoundVariantCallFromUnoptimizedCode) \ |
72 V(MathRoundVariantCallFromOptimizedCode) \ | 72 V(MathRoundVariantCallFromOptimizedCode) \ |
73 V(InterpreterPushArgsAndCall) \ | 73 V(InterpreterPushArgsAndCall) \ |
74 V(InterpreterPushArgsAndConstruct) \ | |
75 V(InterpreterCEntry) | 74 V(InterpreterCEntry) |
76 | 75 |
77 | 76 |
78 class CallInterfaceDescriptorData { | 77 class CallInterfaceDescriptorData { |
79 public: | 78 public: |
80 CallInterfaceDescriptorData() | 79 CallInterfaceDescriptorData() |
81 : register_param_count_(-1), function_type_(nullptr) {} | 80 : register_param_count_(-1), function_type_(nullptr) {} |
82 | 81 |
83 // A copy of the passed in registers and param_representations is made | 82 // A copy of the passed in registers and param_representations is made |
84 // and owned by the CallInterfaceDescriptorData. | 83 // and owned by the CallInterfaceDescriptorData. |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 }; | 709 }; |
711 | 710 |
712 | 711 |
713 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor { | 712 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor { |
714 public: | 713 public: |
715 DECLARE_DESCRIPTOR(InterpreterPushArgsAndCallDescriptor, | 714 DECLARE_DESCRIPTOR(InterpreterPushArgsAndCallDescriptor, |
716 CallInterfaceDescriptor) | 715 CallInterfaceDescriptor) |
717 }; | 716 }; |
718 | 717 |
719 | 718 |
720 class InterpreterPushArgsAndConstructDescriptor | |
721 : public CallInterfaceDescriptor { | |
722 public: | |
723 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructDescriptor, | |
724 CallInterfaceDescriptor) | |
725 }; | |
726 | |
727 | |
728 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { | 719 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { |
729 public: | 720 public: |
730 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) | 721 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) |
731 }; | 722 }; |
732 | 723 |
733 | 724 |
734 #undef DECLARE_DESCRIPTOR | 725 #undef DECLARE_DESCRIPTOR |
735 | 726 |
736 | 727 |
737 // We define the association between CallDescriptors::Key and the specialized | 728 // We define the association between CallDescriptors::Key and the specialized |
738 // descriptor here to reduce boilerplate and mistakes. | 729 // descriptor here to reduce boilerplate and mistakes. |
739 #define DEF_KEY(name) \ | 730 #define DEF_KEY(name) \ |
740 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } | 731 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } |
741 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) | 732 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) |
742 #undef DEF_KEY | 733 #undef DEF_KEY |
743 } // namespace internal | 734 } // namespace internal |
744 } // namespace v8 | 735 } // namespace v8 |
745 | 736 |
746 | 737 |
747 #if V8_TARGET_ARCH_ARM64 | 738 #if V8_TARGET_ARCH_ARM64 |
748 #include "src/arm64/interface-descriptors-arm64.h" | 739 #include "src/arm64/interface-descriptors-arm64.h" |
749 #elif V8_TARGET_ARCH_ARM | 740 #elif V8_TARGET_ARCH_ARM |
750 #include "src/arm/interface-descriptors-arm.h" | 741 #include "src/arm/interface-descriptors-arm.h" |
751 #endif | 742 #endif |
752 | 743 |
753 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 744 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |