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(InstanceOf) \ | 24 V(InstanceOf) \ |
25 V(LoadWithVector) \ | 25 V(LoadWithVector) \ |
| 26 V(FastArrayPush) \ |
26 V(FastNewClosure) \ | 27 V(FastNewClosure) \ |
27 V(FastNewContext) \ | 28 V(FastNewContext) \ |
28 V(FastNewObject) \ | 29 V(FastNewObject) \ |
29 V(FastNewRestParameter) \ | 30 V(FastNewRestParameter) \ |
30 V(FastNewSloppyArguments) \ | 31 V(FastNewSloppyArguments) \ |
31 V(FastNewStrictArguments) \ | 32 V(FastNewStrictArguments) \ |
32 V(TypeConversion) \ | 33 V(TypeConversion) \ |
33 V(Typeof) \ | 34 V(Typeof) \ |
34 V(FastCloneRegExp) \ | 35 V(FastCloneRegExp) \ |
35 V(FastCloneShallowArray) \ | 36 V(FastCloneShallowArray) \ |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 | 750 |
750 static const Register exponent(); | 751 static const Register exponent(); |
751 }; | 752 }; |
752 | 753 |
753 | 754 |
754 class ContextOnlyDescriptor : public CallInterfaceDescriptor { | 755 class ContextOnlyDescriptor : public CallInterfaceDescriptor { |
755 public: | 756 public: |
756 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) | 757 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) |
757 }; | 758 }; |
758 | 759 |
| 760 class FastArrayPushDescriptor : public CallInterfaceDescriptor { |
| 761 public: |
| 762 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(FastArrayPushDescriptor, |
| 763 CallInterfaceDescriptor) |
| 764 }; |
759 | 765 |
760 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { | 766 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { |
761 public: | 767 public: |
762 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) | 768 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) |
763 | 769 |
764 enum RegisterInfo { kObjectIndex, kKeyIndex }; | 770 enum RegisterInfo { kObjectIndex, kKeyIndex }; |
765 static const Register ObjectRegister(); | 771 static const Register ObjectRegister(); |
766 static const Register KeyRegister(); | 772 static const Register KeyRegister(); |
767 }; | 773 }; |
768 | 774 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 } // namespace v8 | 820 } // namespace v8 |
815 | 821 |
816 | 822 |
817 #if V8_TARGET_ARCH_ARM64 | 823 #if V8_TARGET_ARCH_ARM64 |
818 #include "src/arm64/interface-descriptors-arm64.h" | 824 #include "src/arm64/interface-descriptors-arm64.h" |
819 #elif V8_TARGET_ARCH_ARM | 825 #elif V8_TARGET_ARCH_ARM |
820 #include "src/arm/interface-descriptors-arm.h" | 826 #include "src/arm/interface-descriptors-arm.h" |
821 #endif | 827 #endif |
822 | 828 |
823 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 829 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |