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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 V(CreateAllocationSite) \ | 42 V(CreateAllocationSite) \ |
43 V(CreateWeakCell) \ | 43 V(CreateWeakCell) \ |
44 V(CallFunction) \ | 44 V(CallFunction) \ |
45 V(CallIC) \ | 45 V(CallIC) \ |
46 V(CallICTrampoline) \ | 46 V(CallICTrampoline) \ |
47 V(CallForwardVarargs) \ | 47 V(CallForwardVarargs) \ |
48 V(CallConstruct) \ | 48 V(CallConstruct) \ |
49 V(CallTrampoline) \ | 49 V(CallTrampoline) \ |
50 V(ConstructStub) \ | 50 V(ConstructStub) \ |
51 V(ConstructTrampoline) \ | 51 V(ConstructTrampoline) \ |
| 52 V(GenericTagged2) \ |
52 V(RegExpExec) \ | 53 V(RegExpExec) \ |
53 V(RegExpReplace) \ | 54 V(RegExpReplace) \ |
54 V(RegExpSplit) \ | 55 V(RegExpSplit) \ |
55 V(CopyFastSmiOrObjectElements) \ | 56 V(CopyFastSmiOrObjectElements) \ |
56 V(TransitionElementsKind) \ | 57 V(TransitionElementsKind) \ |
57 V(AllocateHeapNumber) \ | 58 V(AllocateHeapNumber) \ |
58 V(Builtin) \ | 59 V(Builtin) \ |
59 V(ArrayConstructor) \ | 60 V(ArrayConstructor) \ |
60 V(ForEach) \ | 61 V(ForEach) \ |
61 V(ArrayNoArgumentConstructor) \ | 62 V(ArrayNoArgumentConstructor) \ |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 DEFINE_PARAMETERS(kTarget, kActualArgumentsCount, kSlot) | 639 DEFINE_PARAMETERS(kTarget, kActualArgumentsCount, kSlot) |
639 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(CallICTrampolineDescriptor, | 640 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(CallICTrampolineDescriptor, |
640 CallInterfaceDescriptor) | 641 CallInterfaceDescriptor) |
641 }; | 642 }; |
642 | 643 |
643 class CallConstructDescriptor : public CallInterfaceDescriptor { | 644 class CallConstructDescriptor : public CallInterfaceDescriptor { |
644 public: | 645 public: |
645 DECLARE_DESCRIPTOR(CallConstructDescriptor, CallInterfaceDescriptor) | 646 DECLARE_DESCRIPTOR(CallConstructDescriptor, CallInterfaceDescriptor) |
646 }; | 647 }; |
647 | 648 |
| 649 class GenericTagged2Descriptor : public CallInterfaceDescriptor { |
| 650 public: |
| 651 DEFINE_PARAMETERS(kFirst, kSecond) |
| 652 DECLARE_DEFAULT_DESCRIPTOR(GenericTagged2Descriptor, CallInterfaceDescriptor, |
| 653 kParameterCount) |
| 654 }; |
| 655 |
648 class RegExpExecDescriptor : public CallInterfaceDescriptor { | 656 class RegExpExecDescriptor : public CallInterfaceDescriptor { |
649 public: | 657 public: |
650 DEFINE_PARAMETERS(kString, kLastIndex, kStringStart, kStringEnd, kCode) | 658 DEFINE_PARAMETERS(kString, kLastIndex, kStringStart, kStringEnd, kCode) |
651 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(RegExpExecDescriptor, | 659 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(RegExpExecDescriptor, |
652 CallInterfaceDescriptor) | 660 CallInterfaceDescriptor) |
653 | 661 |
654 static const Register StringRegister(); | 662 static const Register StringRegister(); |
655 static const Register LastIndexRegister(); | 663 static const Register LastIndexRegister(); |
656 static const Register StringStartRegister(); | 664 static const Register StringStartRegister(); |
657 static const Register StringEndRegister(); | 665 static const Register StringEndRegister(); |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 } // namespace v8 | 989 } // namespace v8 |
982 | 990 |
983 | 991 |
984 #if V8_TARGET_ARCH_ARM64 | 992 #if V8_TARGET_ARCH_ARM64 |
985 #include "src/arm64/interface-descriptors-arm64.h" | 993 #include "src/arm64/interface-descriptors-arm64.h" |
986 #elif V8_TARGET_ARCH_ARM | 994 #elif V8_TARGET_ARCH_ARM |
987 #include "src/arm/interface-descriptors-arm.h" | 995 #include "src/arm/interface-descriptors-arm.h" |
988 #endif | 996 #endif |
989 | 997 |
990 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 998 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |