| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 V(ArrayNArgumentsConstructor) \ | 70 V(ArrayNArgumentsConstructor) \ |
| 71 V(Compare) \ | 71 V(Compare) \ |
| 72 V(BinaryOp) \ | 72 V(BinaryOp) \ |
| 73 V(BinaryOpWithAllocationSite) \ | 73 V(BinaryOpWithAllocationSite) \ |
| 74 V(BinaryOpWithVector) \ | 74 V(BinaryOpWithVector) \ |
| 75 V(CountOp) \ | 75 V(CountOp) \ |
| 76 V(StringAdd) \ | 76 V(StringAdd) \ |
| 77 V(StringCharAt) \ | 77 V(StringCharAt) \ |
| 78 V(StringCharCodeAt) \ | 78 V(StringCharCodeAt) \ |
| 79 V(StringCompare) \ | 79 V(StringCompare) \ |
| 80 V(StringIndexOf) \ |
| 80 V(SubString) \ | 81 V(SubString) \ |
| 81 V(Keyed) \ | 82 V(Keyed) \ |
| 82 V(Named) \ | 83 V(Named) \ |
| 83 V(CreateIterResultObject) \ | 84 V(CreateIterResultObject) \ |
| 84 V(HasProperty) \ | 85 V(HasProperty) \ |
| 85 V(ForInFilter) \ | 86 V(ForInFilter) \ |
| 86 V(GetProperty) \ | 87 V(GetProperty) \ |
| 87 V(CallHandler) \ | 88 V(CallHandler) \ |
| 88 V(ArgumentAdaptor) \ | 89 V(ArgumentAdaptor) \ |
| 89 V(ApiCallback) \ | 90 V(ApiCallback) \ |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 static const Register RightRegister(); | 739 static const Register RightRegister(); |
| 739 }; | 740 }; |
| 740 | 741 |
| 741 class SubStringDescriptor : public CallInterfaceDescriptor { | 742 class SubStringDescriptor : public CallInterfaceDescriptor { |
| 742 public: | 743 public: |
| 743 DEFINE_PARAMETERS(kString, kFrom, kTo) | 744 DEFINE_PARAMETERS(kString, kFrom, kTo) |
| 744 DECLARE_DESCRIPTOR_WITH_STACK_ARGS(SubStringDescriptor, | 745 DECLARE_DESCRIPTOR_WITH_STACK_ARGS(SubStringDescriptor, |
| 745 CallInterfaceDescriptor) | 746 CallInterfaceDescriptor) |
| 746 }; | 747 }; |
| 747 | 748 |
| 749 class StringIndexOfDescriptor final : public CallInterfaceDescriptor { |
| 750 public: |
| 751 DEFINE_PARAMETERS(kReceiver, kSearchString, kPosition) |
| 752 DECLARE_DEFAULT_DESCRIPTOR(StringIndexOfDescriptor, CallInterfaceDescriptor, |
| 753 kParameterCount) |
| 754 }; |
| 755 |
| 748 // TODO(ishell): not used, remove. | 756 // TODO(ishell): not used, remove. |
| 749 class KeyedDescriptor : public CallInterfaceDescriptor { | 757 class KeyedDescriptor : public CallInterfaceDescriptor { |
| 750 public: | 758 public: |
| 751 DECLARE_DESCRIPTOR(KeyedDescriptor, CallInterfaceDescriptor) | 759 DECLARE_DESCRIPTOR(KeyedDescriptor, CallInterfaceDescriptor) |
| 752 }; | 760 }; |
| 753 | 761 |
| 754 // TODO(ishell): not used, remove | 762 // TODO(ishell): not used, remove |
| 755 class NamedDescriptor : public CallInterfaceDescriptor { | 763 class NamedDescriptor : public CallInterfaceDescriptor { |
| 756 public: | 764 public: |
| 757 DECLARE_DESCRIPTOR(NamedDescriptor, CallInterfaceDescriptor) | 765 DECLARE_DESCRIPTOR(NamedDescriptor, CallInterfaceDescriptor) |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 } // namespace v8 | 907 } // namespace v8 |
| 900 | 908 |
| 901 | 909 |
| 902 #if V8_TARGET_ARCH_ARM64 | 910 #if V8_TARGET_ARCH_ARM64 |
| 903 #include "src/arm64/interface-descriptors-arm64.h" | 911 #include "src/arm64/interface-descriptors-arm64.h" |
| 904 #elif V8_TARGET_ARCH_ARM | 912 #elif V8_TARGET_ARCH_ARM |
| 905 #include "src/arm/interface-descriptors-arm.h" | 913 #include "src/arm/interface-descriptors-arm.h" |
| 906 #endif | 914 #endif |
| 907 | 915 |
| 908 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 916 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |