| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 V(MathPowTagged) \ | 91 V(MathPowTagged) \ |
| 92 V(MathPowInteger) \ | 92 V(MathPowInteger) \ |
| 93 V(GrowArrayElements) \ | 93 V(GrowArrayElements) \ |
| 94 V(NewArgumentsElements) \ | 94 V(NewArgumentsElements) \ |
| 95 V(InterpreterDispatch) \ | 95 V(InterpreterDispatch) \ |
| 96 V(InterpreterPushArgsAndCall) \ | 96 V(InterpreterPushArgsAndCall) \ |
| 97 V(InterpreterPushArgsAndConstruct) \ | 97 V(InterpreterPushArgsAndConstruct) \ |
| 98 V(InterpreterPushArgsAndConstructArray) \ | 98 V(InterpreterPushArgsAndConstructArray) \ |
| 99 V(InterpreterCEntry) \ | 99 V(InterpreterCEntry) \ |
| 100 V(ResumeGenerator) \ | 100 V(ResumeGenerator) \ |
| 101 V(FrameDropperTrampoline) \ |
| 101 V(PromiseHandleReject) | 102 V(PromiseHandleReject) |
| 102 | 103 |
| 103 class V8_EXPORT_PRIVATE CallInterfaceDescriptorData { | 104 class V8_EXPORT_PRIVATE CallInterfaceDescriptorData { |
| 104 public: | 105 public: |
| 105 CallInterfaceDescriptorData() : register_param_count_(-1), param_count_(-1) {} | 106 CallInterfaceDescriptorData() : register_param_count_(-1), param_count_(-1) {} |
| 106 | 107 |
| 107 // A copy of the passed in registers and param_representations is made | 108 // A copy of the passed in registers and param_representations is made |
| 108 // and owned by the CallInterfaceDescriptorData. | 109 // and owned by the CallInterfaceDescriptorData. |
| 109 | 110 |
| 110 void InitializePlatformSpecific( | 111 void InitializePlatformSpecific( |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 DEFINE_PARAMETERS(kNumberOfArguments, kFirstArgument, kFunctionEntry) | 870 DEFINE_PARAMETERS(kNumberOfArguments, kFirstArgument, kFunctionEntry) |
| 870 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(InterpreterCEntryDescriptor, | 871 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(InterpreterCEntryDescriptor, |
| 871 CallInterfaceDescriptor) | 872 CallInterfaceDescriptor) |
| 872 }; | 873 }; |
| 873 | 874 |
| 874 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { | 875 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { |
| 875 public: | 876 public: |
| 876 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) | 877 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) |
| 877 }; | 878 }; |
| 878 | 879 |
| 880 class FrameDropperTrampolineDescriptor final : public CallInterfaceDescriptor { |
| 881 DECLARE_DESCRIPTOR(FrameDropperTrampolineDescriptor, CallInterfaceDescriptor) |
| 882 }; |
| 883 |
| 879 class PromiseHandleRejectDescriptor final : public CallInterfaceDescriptor { | 884 class PromiseHandleRejectDescriptor final : public CallInterfaceDescriptor { |
| 880 public: | 885 public: |
| 881 DEFINE_PARAMETERS(kPromise, kOnReject, kException) | 886 DEFINE_PARAMETERS(kPromise, kOnReject, kException) |
| 882 DECLARE_DEFAULT_DESCRIPTOR(PromiseHandleRejectDescriptor, | 887 DECLARE_DEFAULT_DESCRIPTOR(PromiseHandleRejectDescriptor, |
| 883 CallInterfaceDescriptor, kParameterCount) | 888 CallInterfaceDescriptor, kParameterCount) |
| 884 }; | 889 }; |
| 885 | 890 |
| 886 #undef DECLARE_DESCRIPTOR_WITH_BASE | 891 #undef DECLARE_DESCRIPTOR_WITH_BASE |
| 887 #undef DECLARE_DESCRIPTOR | 892 #undef DECLARE_DESCRIPTOR |
| 888 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE | 893 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE |
| (...skipping 10 matching lines...) Expand all Loading... |
| 899 } // namespace v8 | 904 } // namespace v8 |
| 900 | 905 |
| 901 | 906 |
| 902 #if V8_TARGET_ARCH_ARM64 | 907 #if V8_TARGET_ARCH_ARM64 |
| 903 #include "src/arm64/interface-descriptors-arm64.h" | 908 #include "src/arm64/interface-descriptors-arm64.h" |
| 904 #elif V8_TARGET_ARCH_ARM | 909 #elif V8_TARGET_ARCH_ARM |
| 905 #include "src/arm/interface-descriptors-arm.h" | 910 #include "src/arm/interface-descriptors-arm.h" |
| 906 #endif | 911 #endif |
| 907 | 912 |
| 908 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 913 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |