diff --git a/src/ppc/interface-descriptors-ppc.cc b/src/ppc/interface-descriptors-ppc.cc index 3ffe711780..20e395834c 100644 --- a/src/ppc/interface-descriptors-ppc.cc +++ b/src/ppc/interface-descriptors-ppc.cc @@ -99,6 +99,14 @@ void CallForwardVarargsDescriptor::InitializePlatformSpecific( data->InitializePlatformSpecific(arraysize(registers), registers); } +void CallFunctionTemplateDescriptor::InitializePlatformSpecific( + CallInterfaceDescriptorData* data) { + // r4 : function template info + // r5 : number of arguments (on the stack, not including receiver) + Register registers[] = {r4, r5}; + data->InitializePlatformSpecific(arraysize(registers), registers); +} + void CallWithSpreadDescriptor::InitializePlatformSpecific( CallInterfaceDescriptorData* data) { // r3 : number of arguments (on the stack, not including receiver) diff --git a/src/s390/interface-descriptors-s390.cc b/src/s390/interface-descriptors-s390.cc index ffb7eb55c0..da51d195ff 100644 --- a/src/s390/interface-descriptors-s390.cc +++ b/src/s390/interface-descriptors-s390.cc @@ -98,6 +98,14 @@ void CallForwardVarargsDescriptor::InitializePlatformSpecific( data->InitializePlatformSpecific(arraysize(registers), registers); } +void CallFunctionTemplateDescriptor::InitializePlatformSpecific( + CallInterfaceDescriptorData* data) { + // r3 : function template info + // r4 : number of arguments (on the stack, not including receiver) + Register registers[] = {r3, r4}; + data->InitializePlatformSpecific(arraysize(registers), registers); +} + void CallWithSpreadDescriptor::InitializePlatformSpecific( CallInterfaceDescriptorData* data) { // r2 : number of arguments (on the stack, not including receiver)