| 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 26 matching lines...) Expand all Loading... |
| 37 V(FastNewSloppyArguments) \ | 37 V(FastNewSloppyArguments) \ |
| 38 V(FastNewStrictArguments) \ | 38 V(FastNewStrictArguments) \ |
| 39 V(TypeConversion) \ | 39 V(TypeConversion) \ |
| 40 V(Typeof) \ | 40 V(Typeof) \ |
| 41 V(FastCloneRegExp) \ | 41 V(FastCloneRegExp) \ |
| 42 V(FastCloneShallowArray) \ | 42 V(FastCloneShallowArray) \ |
| 43 V(FastCloneShallowObject) \ | 43 V(FastCloneShallowObject) \ |
| 44 V(CreateAllocationSite) \ | 44 V(CreateAllocationSite) \ |
| 45 V(CreateWeakCell) \ | 45 V(CreateWeakCell) \ |
| 46 V(CallFunction) \ | 46 V(CallFunction) \ |
| 47 V(CallFunctionWithFeedback) \ | 47 V(CallIC) \ |
| 48 V(CallFunctionWithFeedbackAndVector) \ | 48 V(CallICTrampoline) \ |
| 49 V(CallForwardVarargs) \ | 49 V(CallForwardVarargs) \ |
| 50 V(CallConstruct) \ | 50 V(CallConstruct) \ |
| 51 V(CallTrampoline) \ | 51 V(CallTrampoline) \ |
| 52 V(ConstructStub) \ | 52 V(ConstructStub) \ |
| 53 V(ConstructTrampoline) \ | 53 V(ConstructTrampoline) \ |
| 54 V(RegExpExec) \ | 54 V(RegExpExec) \ |
| 55 V(CopyFastSmiOrObjectElements) \ | 55 V(CopyFastSmiOrObjectElements) \ |
| 56 V(TransitionElementsKind) \ | 56 V(TransitionElementsKind) \ |
| 57 V(AllocateHeapNumber) \ | 57 V(AllocateHeapNumber) \ |
| 58 V(AllocateFloat32x4) \ | 58 V(AllocateFloat32x4) \ |
| 59 V(AllocateInt32x4) \ | 59 V(AllocateInt32x4) \ |
| 60 V(AllocateUint32x4) \ | 60 V(AllocateUint32x4) \ |
| 61 V(AllocateBool32x4) \ | 61 V(AllocateBool32x4) \ |
| 62 V(AllocateInt16x8) \ | 62 V(AllocateInt16x8) \ |
| 63 V(AllocateUint16x8) \ | 63 V(AllocateUint16x8) \ |
| 64 V(AllocateBool16x8) \ | 64 V(AllocateBool16x8) \ |
| 65 V(AllocateInt8x16) \ | 65 V(AllocateInt8x16) \ |
| 66 V(AllocateUint8x16) \ | 66 V(AllocateUint8x16) \ |
| 67 V(AllocateBool8x16) \ | 67 V(AllocateBool8x16) \ |
| 68 V(Builtin) \ | 68 V(Builtin) \ |
| 69 V(ArrayConstructor) \ |
| 69 V(ArrayNoArgumentConstructor) \ | 70 V(ArrayNoArgumentConstructor) \ |
| 70 V(ArraySingleArgumentConstructor) \ | 71 V(ArraySingleArgumentConstructor) \ |
| 71 V(ArrayNArgumentsConstructor) \ | 72 V(ArrayNArgumentsConstructor) \ |
| 72 V(Compare) \ | 73 V(Compare) \ |
| 73 V(BinaryOp) \ | 74 V(BinaryOp) \ |
| 74 V(BinaryOpWithAllocationSite) \ | 75 V(BinaryOpWithAllocationSite) \ |
| 75 V(BinaryOpWithVector) \ | 76 V(BinaryOpWithVector) \ |
| 76 V(CountOp) \ | 77 V(CountOp) \ |
| 77 V(StringAdd) \ | 78 V(StringAdd) \ |
| 78 V(StringCharAt) \ | 79 V(StringCharAt) \ |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(ConstructTrampolineDescriptor, | 586 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(ConstructTrampolineDescriptor, |
| 586 CallInterfaceDescriptor) | 587 CallInterfaceDescriptor) |
| 587 }; | 588 }; |
| 588 | 589 |
| 589 | 590 |
| 590 class CallFunctionDescriptor : public CallInterfaceDescriptor { | 591 class CallFunctionDescriptor : public CallInterfaceDescriptor { |
| 591 public: | 592 public: |
| 592 DECLARE_DESCRIPTOR(CallFunctionDescriptor, CallInterfaceDescriptor) | 593 DECLARE_DESCRIPTOR(CallFunctionDescriptor, CallInterfaceDescriptor) |
| 593 }; | 594 }; |
| 594 | 595 |
| 595 | 596 class CallICDescriptor : public CallInterfaceDescriptor { |
| 596 class CallFunctionWithFeedbackDescriptor : public CallInterfaceDescriptor { | |
| 597 public: | 597 public: |
| 598 DEFINE_PARAMETERS(kFunction, kActualArgumentsCount, kSlot) | 598 DEFINE_PARAMETERS(kTarget, kActualArgumentsCount, kSlot, kVector) |
| 599 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( | 599 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(CallICDescriptor, |
| 600 CallFunctionWithFeedbackDescriptor, CallInterfaceDescriptor) | 600 CallInterfaceDescriptor) |
| 601 }; | 601 }; |
| 602 | 602 |
| 603 | 603 class CallICTrampolineDescriptor : public CallInterfaceDescriptor { |
| 604 class CallFunctionWithFeedbackAndVectorDescriptor | |
| 605 : public CallInterfaceDescriptor { | |
| 606 public: | 604 public: |
| 607 DEFINE_PARAMETERS(kFunction, kActualArgumentsCount, kSlot, kVector) | 605 DEFINE_PARAMETERS(kTarget, kActualArgumentsCount, kSlot) |
| 608 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( | 606 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(CallICTrampolineDescriptor, |
| 609 CallFunctionWithFeedbackAndVectorDescriptor, CallInterfaceDescriptor) | 607 CallInterfaceDescriptor) |
| 610 }; | 608 }; |
| 611 | 609 |
| 612 | |
| 613 class CallConstructDescriptor : public CallInterfaceDescriptor { | 610 class CallConstructDescriptor : public CallInterfaceDescriptor { |
| 614 public: | 611 public: |
| 615 DECLARE_DESCRIPTOR(CallConstructDescriptor, CallInterfaceDescriptor) | 612 DECLARE_DESCRIPTOR(CallConstructDescriptor, CallInterfaceDescriptor) |
| 616 }; | 613 }; |
| 617 | 614 |
| 618 class RegExpExecDescriptor : public CallInterfaceDescriptor { | 615 class RegExpExecDescriptor : public CallInterfaceDescriptor { |
| 619 public: | 616 public: |
| 620 DEFINE_PARAMETERS(kRegExpObject, kString, kPreviousIndex, kLastMatchInfo) | 617 DEFINE_PARAMETERS(kRegExpObject, kString, kPreviousIndex, kLastMatchInfo) |
| 621 DECLARE_DESCRIPTOR_WITH_STACK_ARGS(RegExpExecDescriptor, | 618 DECLARE_DESCRIPTOR_WITH_STACK_ARGS(RegExpExecDescriptor, |
| 622 CallInterfaceDescriptor) | 619 CallInterfaceDescriptor) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 653 public: | 650 public: |
| 654 // TODO(ishell): Where is kFunction?? | 651 // TODO(ishell): Where is kFunction?? |
| 655 DEFINE_PARAMETERS(kNewTarget, kArgumentsCount) | 652 DEFINE_PARAMETERS(kNewTarget, kArgumentsCount) |
| 656 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(BuiltinDescriptor, | 653 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(BuiltinDescriptor, |
| 657 CallInterfaceDescriptor) | 654 CallInterfaceDescriptor) |
| 658 static const Register ArgumentsCountRegister(); | 655 static const Register ArgumentsCountRegister(); |
| 659 static const Register NewTargetRegister(); | 656 static const Register NewTargetRegister(); |
| 660 static const Register TargetRegister(); | 657 static const Register TargetRegister(); |
| 661 }; | 658 }; |
| 662 | 659 |
| 660 class ArrayConstructorDescriptor : public CallInterfaceDescriptor { |
| 661 public: |
| 662 DEFINE_PARAMETERS(kTarget, kNewTarget, kActualArgumentsCount, kAllocationSite) |
| 663 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(ArrayConstructorDescriptor, |
| 664 CallInterfaceDescriptor) |
| 665 }; |
| 666 |
| 663 class ArrayNoArgumentConstructorDescriptor : public CallInterfaceDescriptor { | 667 class ArrayNoArgumentConstructorDescriptor : public CallInterfaceDescriptor { |
| 664 public: | 668 public: |
| 665 DEFINE_PARAMETERS(kFunction, kAllocationSite, kActualArgumentsCount, | 669 DEFINE_PARAMETERS(kFunction, kAllocationSite, kActualArgumentsCount, |
| 666 kFunctionParameter) | 670 kFunctionParameter) |
| 667 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( | 671 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( |
| 668 ArrayNoArgumentConstructorDescriptor, CallInterfaceDescriptor) | 672 ArrayNoArgumentConstructorDescriptor, CallInterfaceDescriptor) |
| 669 }; | 673 }; |
| 670 | 674 |
| 671 class ArraySingleArgumentConstructorDescriptor | 675 class ArraySingleArgumentConstructorDescriptor |
| 672 : public CallInterfaceDescriptor { | 676 : public CallInterfaceDescriptor { |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 } // namespace v8 | 924 } // namespace v8 |
| 921 | 925 |
| 922 | 926 |
| 923 #if V8_TARGET_ARCH_ARM64 | 927 #if V8_TARGET_ARCH_ARM64 |
| 924 #include "src/arm64/interface-descriptors-arm64.h" | 928 #include "src/arm64/interface-descriptors-arm64.h" |
| 925 #elif V8_TARGET_ARCH_ARM | 929 #elif V8_TARGET_ARCH_ARM |
| 926 #include "src/arm/interface-descriptors-arm.h" | 930 #include "src/arm/interface-descriptors-arm.h" |
| 927 #endif | 931 #endif |
| 928 | 932 |
| 929 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 933 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |