Index: src/arm/interface-descriptors-arm.cc |
diff --git a/src/arm/interface-descriptors-arm.cc b/src/arm/interface-descriptors-arm.cc |
index f4303b9bdd1733dada5139e262a59d0a508ca7e7..f2fb703b9fd454f68e7f3a148d5e988fee674788 100644 |
--- a/src/arm/interface-descriptors-arm.cc |
+++ b/src/arm/interface-descriptors-arm.cc |
@@ -157,9 +157,20 @@ void CallTrampolineDescriptor::InitializePlatformSpecific( |
void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
+ // r0 : number of arguments |
+ // r2 : start index (to support rest parameters) |
+ // r1 : the target to call |
+ Register registers[] = {r1, r0, r2}; |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
+} |
+ |
+void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
+ // r0 : number of arguments |
+ // r3 : the new target |
// r2 : start index (to support rest parameters) |
// r1 : the target to call |
- Register registers[] = {r1, r2}; |
+ Register registers[] = {r1, r3, r0, r2}; |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |