Index: src/ppc/interface-descriptors-ppc.cc |
diff --git a/src/ppc/interface-descriptors-ppc.cc b/src/ppc/interface-descriptors-ppc.cc |
index 19cbce46f01c867ec43dae0dc58c6c15432d2e9f..cba9275d9066b1d75a6d50f2c5b4095a9b7233d1 100644 |
--- a/src/ppc/interface-descriptors-ppc.cc |
+++ b/src/ppc/interface-descriptors-ppc.cc |
@@ -155,9 +155,20 @@ void CallTrampolineDescriptor::InitializePlatformSpecific( |
void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
+ // r3 : number of arguments |
+ // r5 : start index (to support rest parameters) |
+ // r4 : the target to call |
+ Register registers[] = {r4, r3, r5}; |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
+} |
+ |
+void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
+ // r3 : number of arguments |
+ // r6 : the new target |
// r5 : start index (to support rest parameters) |
// r4 : the target to call |
- Register registers[] = {r4, r5}; |
+ Register registers[] = {r4, r6, r3, r5}; |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |