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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 class InterpreterDispatchDescriptor : public CallInterfaceDescriptor { | 757 class InterpreterDispatchDescriptor : public CallInterfaceDescriptor { |
758 public: | 758 public: |
759 DEFINE_PARAMETERS(kAccumulator, kBytecodeOffset, kBytecodeArray, | 759 DEFINE_PARAMETERS(kAccumulator, kBytecodeOffset, kBytecodeArray, |
760 kDispatchTable) | 760 kDispatchTable) |
761 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(InterpreterDispatchDescriptor, | 761 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(InterpreterDispatchDescriptor, |
762 CallInterfaceDescriptor) | 762 CallInterfaceDescriptor) |
763 }; | 763 }; |
764 | 764 |
765 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor { | 765 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor { |
766 public: | 766 public: |
767 DECLARE_DESCRIPTOR(InterpreterPushArgsAndCallDescriptor, | 767 DEFINE_PARAMETERS(kNumberOfArguments, kFirstArgument, kFunction) |
768 CallInterfaceDescriptor) | 768 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( |
| 769 InterpreterPushArgsAndCallDescriptor, CallInterfaceDescriptor) |
769 }; | 770 }; |
770 | 771 |
771 | 772 |
772 class InterpreterPushArgsAndConstructDescriptor | 773 class InterpreterPushArgsAndConstructDescriptor |
773 : public CallInterfaceDescriptor { | 774 : public CallInterfaceDescriptor { |
774 public: | 775 public: |
775 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructDescriptor, | 776 DEFINE_PARAMETERS(kNumberOfArguments, kNewTarget, kConstructor, |
776 CallInterfaceDescriptor) | 777 kFeedbackElement, kFirstArgument) |
| 778 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( |
| 779 InterpreterPushArgsAndConstructDescriptor, CallInterfaceDescriptor) |
777 }; | 780 }; |
778 | 781 |
779 class InterpreterPushArgsAndConstructArrayDescriptor | 782 class InterpreterPushArgsAndConstructArrayDescriptor |
780 : public CallInterfaceDescriptor { | 783 : public CallInterfaceDescriptor { |
781 public: | 784 public: |
782 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructArrayDescriptor, | 785 DEFINE_PARAMETERS(kNumberOfArguments, kFunction, kFeedbackElement, |
783 CallInterfaceDescriptor) | 786 kFirstArgument) |
| 787 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( |
| 788 InterpreterPushArgsAndConstructArrayDescriptor, CallInterfaceDescriptor) |
784 }; | 789 }; |
785 | 790 |
786 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { | 791 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { |
787 public: | 792 public: |
788 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) | 793 DEFINE_PARAMETERS(kNumberOfArguments, kFirstArgument, kFunctionEntry) |
| 794 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(InterpreterCEntryDescriptor, |
| 795 CallInterfaceDescriptor) |
789 }; | 796 }; |
790 | 797 |
791 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { | 798 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { |
792 public: | 799 public: |
793 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) | 800 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) |
794 }; | 801 }; |
795 | 802 |
796 #undef DECLARE_DESCRIPTOR_WITH_BASE | 803 #undef DECLARE_DESCRIPTOR_WITH_BASE |
797 #undef DECLARE_DESCRIPTOR | 804 #undef DECLARE_DESCRIPTOR |
798 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE | 805 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE |
(...skipping 10 matching lines...) Expand all Loading... |
809 } // namespace v8 | 816 } // namespace v8 |
810 | 817 |
811 | 818 |
812 #if V8_TARGET_ARCH_ARM64 | 819 #if V8_TARGET_ARCH_ARM64 |
813 #include "src/arm64/interface-descriptors-arm64.h" | 820 #include "src/arm64/interface-descriptors-arm64.h" |
814 #elif V8_TARGET_ARCH_ARM | 821 #elif V8_TARGET_ARCH_ARM |
815 #include "src/arm/interface-descriptors-arm.h" | 822 #include "src/arm/interface-descriptors-arm.h" |
816 #endif | 823 #endif |
817 | 824 |
818 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 825 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |