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