| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(CopyFixedArray) \ | 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) \ |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 class StoreGlobalViaContextDescriptor : public CallInterfaceDescriptor { | 642 class StoreGlobalViaContextDescriptor : public CallInterfaceDescriptor { |
| 643 public: | 643 public: |
| 644 DEFINE_PARAMETERS(kSlot, kValue) | 644 DEFINE_PARAMETERS(kSlot, kValue) |
| 645 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(StoreGlobalViaContextDescriptor, | 645 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(StoreGlobalViaContextDescriptor, |
| 646 CallInterfaceDescriptor) | 646 CallInterfaceDescriptor) |
| 647 | 647 |
| 648 static const Register SlotRegister(); | 648 static const Register SlotRegister(); |
| 649 static const Register ValueRegister(); | 649 static const Register ValueRegister(); |
| 650 }; | 650 }; |
| 651 | 651 |
| 652 class CopyFixedArrayDescriptor : public CallInterfaceDescriptor { | 652 class CopyFastSmiOrObjectElementsDescriptor : public CallInterfaceDescriptor { |
| 653 public: | 653 public: |
| 654 DEFINE_PARAMETERS(kSource) | 654 DEFINE_PARAMETERS(kObject) |
| 655 DECLARE_DEFAULT_DESCRIPTOR(CopyFixedArrayDescriptor, CallInterfaceDescriptor, | 655 DECLARE_DEFAULT_DESCRIPTOR(CopyFastSmiOrObjectElementsDescriptor, |
| 656 kParameterCount) | 656 CallInterfaceDescriptor, kParameterCount) |
| 657 }; | 657 }; |
| 658 | 658 |
| 659 class TransitionElementsKindDescriptor : public CallInterfaceDescriptor { | 659 class TransitionElementsKindDescriptor : public CallInterfaceDescriptor { |
| 660 public: | 660 public: |
| 661 DEFINE_PARAMETERS(kObject, kMap) | 661 DEFINE_PARAMETERS(kObject, kMap) |
| 662 DECLARE_DESCRIPTOR(TransitionElementsKindDescriptor, CallInterfaceDescriptor) | 662 DECLARE_DESCRIPTOR(TransitionElementsKindDescriptor, CallInterfaceDescriptor) |
| 663 }; | 663 }; |
| 664 | 664 |
| 665 | 665 |
| 666 class AllocateHeapNumberDescriptor : public CallInterfaceDescriptor { | 666 class AllocateHeapNumberDescriptor : public CallInterfaceDescriptor { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 static const Register exponent(); | 869 static const Register exponent(); |
| 870 }; | 870 }; |
| 871 | 871 |
| 872 class VarArgFunctionDescriptor : public CallInterfaceDescriptor { | 872 class VarArgFunctionDescriptor : public CallInterfaceDescriptor { |
| 873 public: | 873 public: |
| 874 DEFINE_PARAMETERS(kActualArgumentsCount) | 874 DEFINE_PARAMETERS(kActualArgumentsCount) |
| 875 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(VarArgFunctionDescriptor, | 875 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(VarArgFunctionDescriptor, |
| 876 CallInterfaceDescriptor) | 876 CallInterfaceDescriptor) |
| 877 }; | 877 }; |
| 878 | 878 |
| 879 // TODO(turbofan): We should probably rename this to GrowFastElementsDescriptor. |
| 879 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { | 880 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { |
| 880 public: | 881 public: |
| 881 DEFINE_PARAMETERS(kObject, kKey) | 882 DEFINE_PARAMETERS(kObject, kKey) |
| 882 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) | 883 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) |
| 883 | 884 |
| 884 static const Register ObjectRegister(); | 885 static const Register ObjectRegister(); |
| 885 static const Register KeyRegister(); | 886 static const Register KeyRegister(); |
| 886 }; | 887 }; |
| 887 | 888 |
| 888 class InterpreterDispatchDescriptor : public CallInterfaceDescriptor { | 889 class InterpreterDispatchDescriptor : public CallInterfaceDescriptor { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 } // namespace v8 | 935 } // namespace v8 |
| 935 | 936 |
| 936 | 937 |
| 937 #if V8_TARGET_ARCH_ARM64 | 938 #if V8_TARGET_ARCH_ARM64 |
| 938 #include "src/arm64/interface-descriptors-arm64.h" | 939 #include "src/arm64/interface-descriptors-arm64.h" |
| 939 #elif V8_TARGET_ARCH_ARM | 940 #elif V8_TARGET_ARCH_ARM |
| 940 #include "src/arm/interface-descriptors-arm.h" | 941 #include "src/arm/interface-descriptors-arm.h" |
| 941 #endif | 942 #endif |
| 942 | 943 |
| 943 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 944 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |