Index: src/mips64/interface-descriptors-mips64.cc |
diff --git a/src/mips64/interface-descriptors-mips64.cc b/src/mips64/interface-descriptors-mips64.cc |
index 9aabfdc19472b91f43dcb3737a6a90891f4c4b10..73889d2d3477965ce307ebe5eff7c2f07d0452fd 100644 |
--- a/src/mips64/interface-descriptors-mips64.cc |
+++ b/src/mips64/interface-descriptors-mips64.cc |
@@ -156,8 +156,19 @@ void CallTrampolineDescriptor::InitializePlatformSpecific( |
void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
// a1: the target to call |
+ // a0: number of arguments |
+ // a2: start index (to support rest parameters) |
+ Register registers[] = {a1, a0, a2}; |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
+} |
+ |
+void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
+ // a1: the target to call |
+ // a3: new target |
+ // a0: number of arguments |
// a2: start index (to support rest parameters) |
- Register registers[] = {a1, a2}; |
+ Register registers[] = {a1, a3, a0, a2}; |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |