Index: src/mips/interface-descriptors-mips.cc |
diff --git a/src/mips/interface-descriptors-mips.cc b/src/mips/interface-descriptors-mips.cc |
index 2fea9a84a6ab429745daf2238b7166e7541016ee..c1e8229e22d1292310e581c3a22b02c166e6478f 100644 |
--- a/src/mips/interface-descriptors-mips.cc |
+++ b/src/mips/interface-descriptors-mips.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); |
} |