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" |
11 #include "src/macro-assembler.h" | 11 #include "src/macro-assembler.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 class PlatformInterfaceDescriptor; | 16 class PlatformInterfaceDescriptor; |
17 | 17 |
18 #define INTERFACE_DESCRIPTOR_LIST(V) \ | 18 #define INTERFACE_DESCRIPTOR_LIST(V) \ |
19 V(Void) \ | 19 V(Void) \ |
20 V(ContextOnly) \ | 20 V(ContextOnly) \ |
21 V(OnStackWith1Args) \ | 21 V(OnStackWith1Args) \ |
22 V(OnStackWith2Args) \ | 22 V(OnStackWith2Args) \ |
23 V(OnStackWith3Args) \ | 23 V(OnStackWith3Args) \ |
24 V(OnStackWith4Args) \ | 24 V(OnStackWith4Args) \ |
25 V(OnStackWith5Args) \ | 25 V(OnStackWith5Args) \ |
26 V(OnStackWith6Args) \ | 26 V(OnStackWith6Args) \ |
27 V(OnStackWith7Args) \ | 27 V(OnStackWith7Args) \ |
28 V(Load) \ | 28 V(Load) \ |
29 V(LoadWithVector) \ | 29 V(LoadWithVector) \ |
30 V(LoadGlobal) \ | 30 V(LoadGlobal) \ |
31 V(LoadGlobalWithVector) \ | 31 V(LoadGlobalWithVector) \ |
32 V(Store) \ | 32 V(Store) \ |
33 V(StoreWithVector) \ | 33 V(StoreWithVector) \ |
34 V(StoreTransition) \ | 34 V(StoreTransition) \ |
35 V(VectorStoreTransition) \ | 35 V(VectorStoreTransition) \ |
36 V(VarArgFunction) \ | 36 V(VarArgFunction) \ |
37 V(FastNewClosure) \ | 37 V(FastNewClosure) \ |
38 V(FastNewFunctionContext) \ | 38 V(FastNewFunctionContext) \ |
39 V(FastNewObject) \ | 39 V(FastNewObject) \ |
40 V(FastNewRestParameter) \ | 40 V(FastNewRestParameter) \ |
41 V(FastNewSloppyArguments) \ | 41 V(FastNewSloppyArguments) \ |
42 V(FastNewStrictArguments) \ | 42 V(FastNewStrictArguments) \ |
43 V(TypeConversion) \ | 43 V(TypeConversion) \ |
44 V(Typeof) \ | 44 V(Typeof) \ |
45 V(FastCloneRegExp) \ | 45 V(FastCloneRegExp) \ |
46 V(FastCloneShallowArray) \ | 46 V(FastCloneShallowArray) \ |
47 V(FastCloneShallowObject) \ | 47 V(FastCloneShallowObject) \ |
48 V(CreateAllocationSite) \ | 48 V(CreateAllocationSite) \ |
49 V(CreateWeakCell) \ | 49 V(CreateWeakCell) \ |
50 V(CallFunction) \ | 50 V(CallFunction) \ |
51 V(CallFunctionWithFeedback) \ | 51 V(CallFunctionWithFeedback) \ |
52 V(CallFunctionWithFeedbackAndVector) \ | 52 V(CallFunctionWithFeedbackAndVector) \ |
53 V(CallConstruct) \ | 53 V(CallConstruct) \ |
54 V(CallTrampoline) \ | 54 V(CallTrampoline) \ |
55 V(ConstructStub) \ | 55 V(ConstructStub) \ |
56 V(ConstructTrampoline) \ | 56 V(ConstructTrampoline) \ |
57 V(RegExpConstructResult) \ | 57 V(RegExpConstructResult) \ |
58 V(CopyFastSmiOrObjectElements) \ | 58 V(CopyFastSmiOrObjectElements) \ |
59 V(TransitionElementsKind) \ | 59 V(TransitionElementsKind) \ |
60 V(AllocateHeapNumber) \ | 60 V(AllocateHeapNumber) \ |
61 V(AllocateFloat32x4) \ | 61 V(AllocateFloat32x4) \ |
62 V(AllocateInt32x4) \ | 62 V(AllocateInt32x4) \ |
63 V(AllocateUint32x4) \ | 63 V(AllocateUint32x4) \ |
64 V(AllocateBool32x4) \ | 64 V(AllocateBool32x4) \ |
65 V(AllocateInt16x8) \ | 65 V(AllocateInt16x8) \ |
66 V(AllocateUint16x8) \ | 66 V(AllocateUint16x8) \ |
67 V(AllocateBool16x8) \ | 67 V(AllocateBool16x8) \ |
68 V(AllocateInt8x16) \ | 68 V(AllocateInt8x16) \ |
69 V(AllocateUint8x16) \ | 69 V(AllocateUint8x16) \ |
70 V(AllocateBool8x16) \ | 70 V(AllocateBool8x16) \ |
71 V(ArrayNoArgumentConstructor) \ | 71 V(ArrayNoArgumentConstructor) \ |
72 V(ArraySingleArgumentConstructor) \ | 72 V(ArraySingleArgumentConstructor) \ |
73 V(ArrayNArgumentsConstructor) \ | 73 V(ArrayNArgumentsConstructor) \ |
74 V(Compare) \ | 74 V(Compare) \ |
75 V(BinaryOp) \ | 75 V(BinaryOp) \ |
76 V(BinaryOpWithAllocationSite) \ | 76 V(BinaryOpWithAllocationSite) \ |
77 V(BinaryOpWithVector) \ | 77 V(BinaryOpWithVector) \ |
78 V(CountOp) \ | 78 V(CountOp) \ |
79 V(StringAdd) \ | 79 V(StringAdd) \ |
80 V(StringCompare) \ | 80 V(StringCompare) \ |
81 V(Keyed) \ | 81 V(Keyed) \ |
82 V(Named) \ | 82 V(Named) \ |
83 V(HasProperty) \ | 83 V(HasProperty) \ |
84 V(ForInFilter) \ | 84 V(ForInFilter) \ |
85 V(GetProperty) \ | 85 V(GetProperty) \ |
86 V(CallHandler) \ | 86 V(CallHandler) \ |
87 V(ArgumentAdaptor) \ | 87 V(ArgumentAdaptor) \ |
88 V(ApiCallbackWith0Args) \ | 88 V(ApiCallbackWith0Args) \ |
89 V(ApiCallbackWith1Args) \ | 89 V(ApiCallbackWith1Args) \ |
90 V(ApiCallbackWith2Args) \ | 90 V(ApiCallbackWith2Args) \ |
91 V(ApiCallbackWith3Args) \ | 91 V(ApiCallbackWith3Args) \ |
92 V(ApiCallbackWith4Args) \ | 92 V(ApiCallbackWith4Args) \ |
93 V(ApiCallbackWith5Args) \ | 93 V(ApiCallbackWith5Args) \ |
94 V(ApiCallbackWith6Args) \ | 94 V(ApiCallbackWith6Args) \ |
95 V(ApiCallbackWith7Args) \ | 95 V(ApiCallbackWith7Args) \ |
96 V(ApiGetter) \ | 96 V(ApiGetter) \ |
97 V(StoreGlobalViaContext) \ | 97 V(StoreGlobalViaContext) \ |
98 V(MathPowTagged) \ | 98 V(MathPowTagged) \ |
99 V(MathPowInteger) \ | 99 V(MathPowInteger) \ |
100 V(GrowArrayElements) \ | 100 V(GrowArrayElements) \ |
101 V(InterpreterDispatch) \ | 101 V(InterpreterDispatch) \ |
102 V(InterpreterPushArgsAndCall) \ | 102 V(InterpreterPushArgsAndCall) \ |
103 V(InterpreterPushArgsAndConstruct) \ | 103 V(InterpreterPushArgsAndConstruct) \ |
104 V(InterpreterCEntry) \ | 104 V(InterpreterPushArgsAndConstructArray) \ |
| 105 V(InterpreterCEntry) \ |
105 V(ResumeGenerator) | 106 V(ResumeGenerator) |
106 | 107 |
107 class CallInterfaceDescriptorData { | 108 class CallInterfaceDescriptorData { |
108 public: | 109 public: |
109 CallInterfaceDescriptorData() : register_param_count_(-1), param_count_(-1) {} | 110 CallInterfaceDescriptorData() : register_param_count_(-1), param_count_(-1) {} |
110 | 111 |
111 // A copy of the passed in registers and param_representations is made | 112 // A copy of the passed in registers and param_representations is made |
112 // and owned by the CallInterfaceDescriptorData. | 113 // and owned by the CallInterfaceDescriptorData. |
113 | 114 |
114 void InitializePlatformSpecific( | 115 void InitializePlatformSpecific( |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 }; | 907 }; |
907 | 908 |
908 | 909 |
909 class InterpreterPushArgsAndConstructDescriptor | 910 class InterpreterPushArgsAndConstructDescriptor |
910 : public CallInterfaceDescriptor { | 911 : public CallInterfaceDescriptor { |
911 public: | 912 public: |
912 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructDescriptor, | 913 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructDescriptor, |
913 CallInterfaceDescriptor) | 914 CallInterfaceDescriptor) |
914 }; | 915 }; |
915 | 916 |
| 917 class InterpreterPushArgsAndConstructArrayDescriptor |
| 918 : public CallInterfaceDescriptor { |
| 919 public: |
| 920 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructArrayDescriptor, |
| 921 CallInterfaceDescriptor) |
| 922 }; |
916 | 923 |
917 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { | 924 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { |
918 public: | 925 public: |
919 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) | 926 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) |
920 }; | 927 }; |
921 | 928 |
922 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { | 929 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { |
923 public: | 930 public: |
924 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) | 931 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) |
925 }; | 932 }; |
(...skipping 14 matching lines...) Expand all Loading... |
940 } // namespace v8 | 947 } // namespace v8 |
941 | 948 |
942 | 949 |
943 #if V8_TARGET_ARCH_ARM64 | 950 #if V8_TARGET_ARCH_ARM64 |
944 #include "src/arm64/interface-descriptors-arm64.h" | 951 #include "src/arm64/interface-descriptors-arm64.h" |
945 #elif V8_TARGET_ARCH_ARM | 952 #elif V8_TARGET_ARCH_ARM |
946 #include "src/arm/interface-descriptors-arm.h" | 953 #include "src/arm/interface-descriptors-arm.h" |
947 #endif | 954 #endif |
948 | 955 |
949 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 956 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |