| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 V(MathPowTagged) \ | 93 V(MathPowTagged) \ |
| 94 V(MathPowInteger) \ | 94 V(MathPowInteger) \ |
| 95 V(GrowArrayElements) \ | 95 V(GrowArrayElements) \ |
| 96 V(NewArgumentsElements) \ | 96 V(NewArgumentsElements) \ |
| 97 V(InterpreterDispatch) \ | 97 V(InterpreterDispatch) \ |
| 98 V(InterpreterPushArgsAndCall) \ | 98 V(InterpreterPushArgsAndCall) \ |
| 99 V(InterpreterPushArgsAndConstruct) \ | 99 V(InterpreterPushArgsAndConstruct) \ |
| 100 V(InterpreterPushArgsAndConstructArray) \ | 100 V(InterpreterPushArgsAndConstructArray) \ |
| 101 V(InterpreterCEntry) \ | 101 V(InterpreterCEntry) \ |
| 102 V(ResumeGenerator) \ | 102 V(ResumeGenerator) \ |
| 103 V(FrameDropperTrampoline) \ |
| 103 V(PromiseHandleReject) | 104 V(PromiseHandleReject) |
| 104 | 105 |
| 105 class V8_EXPORT_PRIVATE CallInterfaceDescriptorData { | 106 class V8_EXPORT_PRIVATE CallInterfaceDescriptorData { |
| 106 public: | 107 public: |
| 107 CallInterfaceDescriptorData() : register_param_count_(-1), param_count_(-1) {} | 108 CallInterfaceDescriptorData() : register_param_count_(-1), param_count_(-1) {} |
| 108 | 109 |
| 109 // A copy of the passed in registers and param_representations is made | 110 // A copy of the passed in registers and param_representations is made |
| 110 // and owned by the CallInterfaceDescriptorData. | 111 // and owned by the CallInterfaceDescriptorData. |
| 111 | 112 |
| 112 void InitializePlatformSpecific( | 113 void InitializePlatformSpecific( |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 DEFINE_PARAMETERS(kNumberOfArguments, kFirstArgument, kFunctionEntry) | 885 DEFINE_PARAMETERS(kNumberOfArguments, kFirstArgument, kFunctionEntry) |
| 885 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(InterpreterCEntryDescriptor, | 886 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(InterpreterCEntryDescriptor, |
| 886 CallInterfaceDescriptor) | 887 CallInterfaceDescriptor) |
| 887 }; | 888 }; |
| 888 | 889 |
| 889 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { | 890 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { |
| 890 public: | 891 public: |
| 891 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) | 892 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) |
| 892 }; | 893 }; |
| 893 | 894 |
| 895 class FrameDropperTrampolineDescriptor final : public CallInterfaceDescriptor { |
| 896 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(FrameDropperTrampolineDescriptor, |
| 897 CallInterfaceDescriptor) |
| 898 }; |
| 899 |
| 894 class PromiseHandleRejectDescriptor final : public CallInterfaceDescriptor { | 900 class PromiseHandleRejectDescriptor final : public CallInterfaceDescriptor { |
| 895 public: | 901 public: |
| 896 DEFINE_PARAMETERS(kPromise, kOnReject, kException) | 902 DEFINE_PARAMETERS(kPromise, kOnReject, kException) |
| 897 DECLARE_DEFAULT_DESCRIPTOR(PromiseHandleRejectDescriptor, | 903 DECLARE_DEFAULT_DESCRIPTOR(PromiseHandleRejectDescriptor, |
| 898 CallInterfaceDescriptor, kParameterCount) | 904 CallInterfaceDescriptor, kParameterCount) |
| 899 }; | 905 }; |
| 900 | 906 |
| 901 #undef DECLARE_DESCRIPTOR_WITH_BASE | 907 #undef DECLARE_DESCRIPTOR_WITH_BASE |
| 902 #undef DECLARE_DESCRIPTOR | 908 #undef DECLARE_DESCRIPTOR |
| 903 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE | 909 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE |
| (...skipping 10 matching lines...) Expand all Loading... |
| 914 } // namespace v8 | 920 } // namespace v8 |
| 915 | 921 |
| 916 | 922 |
| 917 #if V8_TARGET_ARCH_ARM64 | 923 #if V8_TARGET_ARCH_ARM64 |
| 918 #include "src/arm64/interface-descriptors-arm64.h" | 924 #include "src/arm64/interface-descriptors-arm64.h" |
| 919 #elif V8_TARGET_ARCH_ARM | 925 #elif V8_TARGET_ARCH_ARM |
| 920 #include "src/arm/interface-descriptors-arm.h" | 926 #include "src/arm/interface-descriptors-arm.h" |
| 921 #endif | 927 #endif |
| 922 | 928 |
| 923 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 929 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |