Index: src/interface-descriptors.cc |
diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc |
index 88d91421a70e4e9839c844bdafc778c40d52e86e..2d8ff10258063376db8f6587815b764c9435dc72 100644 |
--- a/src/interface-descriptors.cc |
+++ b/src/interface-descriptors.cc |
@@ -370,6 +370,27 @@ void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformIndependent( |
machine_types); |
} |
+void BuiltinDescriptor::InitializePlatformIndependent( |
+ CallInterfaceDescriptorData* data) { |
+ MachineType machine_types[] = {MachineType::AnyTagged(), |
+ MachineType::Int32()}; |
+ data->InitializePlatformIndependent(arraysize(machine_types), 0, |
+ machine_types); |
+} |
+ |
+void BuiltinDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
+ Register registers[] = {NewTargetRegister(), ArgumentsCountRegister()}; |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
+} |
+ |
+const Register BuiltinDescriptor::ArgumentsCountRegister() { |
+ return kJavaScriptCallArgCountRegister; |
+} |
+const Register BuiltinDescriptor::NewTargetRegister() { |
+ return kJavaScriptCallNewTargetRegister; |
+} |
+ |
void ArrayNoArgumentConstructorDescriptor::InitializePlatformIndependent( |
CallInterfaceDescriptorData* data) { |
// kFunction, kAllocationSite, kActualArgumentsCount, kFunctionParameter |