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 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 class PlatformInterfaceDescriptor; | 14 class PlatformInterfaceDescriptor; |
15 | 15 |
16 #define INTERFACE_DESCRIPTOR_LIST(V) \ | 16 #define INTERFACE_DESCRIPTOR_LIST(V) \ |
17 V(Void) \ | 17 V(Void) \ |
18 V(Load) \ | 18 V(Load) \ |
19 V(Store) \ | 19 V(Store) \ |
20 V(StoreTransition) \ | 20 V(StoreTransition) \ |
21 V(VectorStoreTransition) \ | 21 V(VectorStoreTransition) \ |
22 V(VectorStoreICTrampoline) \ | 22 V(VectorStoreICTrampoline) \ |
23 V(VectorStoreIC) \ | 23 V(VectorStoreIC) \ |
24 V(LoadWithVector) \ | 24 V(LoadWithVector) \ |
25 V(FastArrayPush) \ | 25 V(VarArgFunction) \ |
26 V(FastNewClosure) \ | 26 V(FastNewClosure) \ |
27 V(FastNewContext) \ | 27 V(FastNewContext) \ |
28 V(FastNewObject) \ | 28 V(FastNewObject) \ |
29 V(FastNewRestParameter) \ | 29 V(FastNewRestParameter) \ |
30 V(FastNewSloppyArguments) \ | 30 V(FastNewSloppyArguments) \ |
31 V(FastNewStrictArguments) \ | 31 V(FastNewStrictArguments) \ |
32 V(TypeConversion) \ | 32 V(TypeConversion) \ |
33 V(Typeof) \ | 33 V(Typeof) \ |
34 V(FastCloneRegExp) \ | 34 V(FastCloneRegExp) \ |
35 V(FastCloneShallowArray) \ | 35 V(FastCloneShallowArray) \ |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 | 784 |
785 static const Register exponent(); | 785 static const Register exponent(); |
786 }; | 786 }; |
787 | 787 |
788 | 788 |
789 class ContextOnlyDescriptor : public CallInterfaceDescriptor { | 789 class ContextOnlyDescriptor : public CallInterfaceDescriptor { |
790 public: | 790 public: |
791 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) | 791 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) |
792 }; | 792 }; |
793 | 793 |
794 class FastArrayPushDescriptor : public CallInterfaceDescriptor { | 794 class VarArgFunctionDescriptor : public CallInterfaceDescriptor { |
795 public: | 795 public: |
796 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(FastArrayPushDescriptor, | 796 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(VarArgFunctionDescriptor, |
797 CallInterfaceDescriptor) | 797 CallInterfaceDescriptor) |
798 }; | 798 }; |
799 | 799 |
800 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { | 800 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { |
801 public: | 801 public: |
802 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) | 802 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) |
803 | 803 |
804 enum RegisterInfo { kObjectIndex, kKeyIndex }; | 804 enum RegisterInfo { kObjectIndex, kKeyIndex }; |
805 static const Register ObjectRegister(); | 805 static const Register ObjectRegister(); |
806 static const Register KeyRegister(); | 806 static const Register KeyRegister(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 } // namespace v8 | 857 } // namespace v8 |
858 | 858 |
859 | 859 |
860 #if V8_TARGET_ARCH_ARM64 | 860 #if V8_TARGET_ARCH_ARM64 |
861 #include "src/arm64/interface-descriptors-arm64.h" | 861 #include "src/arm64/interface-descriptors-arm64.h" |
862 #elif V8_TARGET_ARCH_ARM | 862 #elif V8_TARGET_ARCH_ARM |
863 #include "src/arm/interface-descriptors-arm.h" | 863 #include "src/arm/interface-descriptors-arm.h" |
864 #endif | 864 #endif |
865 | 865 |
866 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 866 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |