| 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(FastNewClosure) \ | 26 V(FastNewClosure) \ |
| 27 V(FastNewContext) \ | 27 V(FastNewContext) \ |
| 28 V(FastNewRestParameter) \ | 28 V(FastNewRestParameter) \ |
| 29 V(FastNewStrictArguments) \ | 29 V(FastNewStrictArguments) \ |
| 30 V(ToNumber) \ | 30 V(ToNumber) \ |
| 31 V(ToLength) \ | 31 V(ToLength) \ |
| 32 V(ToString) \ | 32 V(ToString) \ |
| 33 V(ToName) \ | 33 V(ToName) \ |
| 34 V(ToObject) \ | 34 V(ToObject) \ |
| 35 V(NumberToString) \ | 35 V(NumberToString) \ |
| 36 V(Typeof) \ | 36 V(Typeof) \ |
| 37 V(FastCloneRegExp) \ | 37 V(FastCloneRegExp) \ |
| 38 V(FastCloneShallowArray) \ | 38 V(FastCloneShallowArray) \ |
| 39 V(FastCloneShallowObject) \ | 39 V(FastCloneShallowObject) \ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 V(ApiGetter) \ | 71 V(ApiGetter) \ |
| 72 V(ArgumentsAccessNew) \ | 72 V(ArgumentsAccessNew) \ |
| 73 V(LoadGlobalViaContext) \ | 73 V(LoadGlobalViaContext) \ |
| 74 V(StoreGlobalViaContext) \ | 74 V(StoreGlobalViaContext) \ |
| 75 V(MathPowTagged) \ | 75 V(MathPowTagged) \ |
| 76 V(MathPowInteger) \ | 76 V(MathPowInteger) \ |
| 77 V(ContextOnly) \ | 77 V(ContextOnly) \ |
| 78 V(GrowArrayElements) \ | 78 V(GrowArrayElements) \ |
| 79 V(InterpreterDispatch) \ | 79 V(InterpreterDispatch) \ |
| 80 V(InterpreterPushArgsAndCall) \ | 80 V(InterpreterPushArgsAndCall) \ |
| 81 V(InterpreterPushArgsAndCallIC) \ |
| 81 V(InterpreterPushArgsAndConstruct) \ | 82 V(InterpreterPushArgsAndConstruct) \ |
| 82 V(InterpreterCEntry) | 83 V(InterpreterCEntry) |
| 83 | 84 |
| 84 class CallInterfaceDescriptorData { | 85 class CallInterfaceDescriptorData { |
| 85 public: | 86 public: |
| 86 CallInterfaceDescriptorData() | 87 CallInterfaceDescriptorData() |
| 87 : register_param_count_(-1), function_type_(nullptr) {} | 88 : register_param_count_(-1), function_type_(nullptr) {} |
| 88 | 89 |
| 89 // A copy of the passed in registers and param_representations is made | 90 // A copy of the passed in registers and param_representations is made |
| 90 // and owned by the CallInterfaceDescriptorData. | 91 // and owned by the CallInterfaceDescriptorData. |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 CallInterfaceDescriptor) | 757 CallInterfaceDescriptor) |
| 757 | 758 |
| 758 static const int kAccumulatorParameter = 0; | 759 static const int kAccumulatorParameter = 0; |
| 759 static const int kRegisterFileParameter = 1; | 760 static const int kRegisterFileParameter = 1; |
| 760 static const int kBytecodeOffsetParameter = 2; | 761 static const int kBytecodeOffsetParameter = 2; |
| 761 static const int kBytecodeArrayParameter = 3; | 762 static const int kBytecodeArrayParameter = 3; |
| 762 static const int kDispatchTableParameter = 4; | 763 static const int kDispatchTableParameter = 4; |
| 763 static const int kContextParameter = 5; | 764 static const int kContextParameter = 5; |
| 764 }; | 765 }; |
| 765 | 766 |
| 767 class InterpreterPushArgsAndCallICDescriptor : public CallInterfaceDescriptor { |
| 768 public: |
| 769 DECLARE_DESCRIPTOR(InterpreterPushArgsAndCallICDescriptor, |
| 770 CallInterfaceDescriptor) |
| 771 }; |
| 772 |
| 766 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor { | 773 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor { |
| 767 public: | 774 public: |
| 768 DECLARE_DESCRIPTOR(InterpreterPushArgsAndCallDescriptor, | 775 DECLARE_DESCRIPTOR(InterpreterPushArgsAndCallDescriptor, |
| 769 CallInterfaceDescriptor) | 776 CallInterfaceDescriptor) |
| 770 }; | 777 }; |
| 771 | 778 |
| 772 | |
| 773 class InterpreterPushArgsAndConstructDescriptor | 779 class InterpreterPushArgsAndConstructDescriptor |
| 774 : public CallInterfaceDescriptor { | 780 : public CallInterfaceDescriptor { |
| 775 public: | 781 public: |
| 776 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructDescriptor, | 782 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructDescriptor, |
| 777 CallInterfaceDescriptor) | 783 CallInterfaceDescriptor) |
| 778 }; | 784 }; |
| 779 | 785 |
| 780 | 786 |
| 781 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { | 787 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { |
| 782 public: | 788 public: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 796 } // namespace v8 | 802 } // namespace v8 |
| 797 | 803 |
| 798 | 804 |
| 799 #if V8_TARGET_ARCH_ARM64 | 805 #if V8_TARGET_ARCH_ARM64 |
| 800 #include "src/arm64/interface-descriptors-arm64.h" | 806 #include "src/arm64/interface-descriptors-arm64.h" |
| 801 #elif V8_TARGET_ARCH_ARM | 807 #elif V8_TARGET_ARCH_ARM |
| 802 #include "src/arm/interface-descriptors-arm.h" | 808 #include "src/arm/interface-descriptors-arm.h" |
| 803 #endif | 809 #endif |
| 804 | 810 |
| 805 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 811 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |