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