Index: src/arm64/interface-descriptors-arm64.cc |
diff --git a/src/arm64/interface-descriptors-arm64.cc b/src/arm64/interface-descriptors-arm64.cc |
index 0555a009b1d72288e276fb8dbfa2774f7235a047..887adddf29829c3244573f23a00a45d5ba6d9152 100644 |
--- a/src/arm64/interface-descriptors-arm64.cc |
+++ b/src/arm64/interface-descriptors-arm64.cc |
@@ -177,8 +177,19 @@ void CallTrampolineDescriptor::InitializePlatformSpecific( |
void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
// x1: target |
+ // x0: number of arguments |
+ // x2: start index (to supported rest parameters) |
+ Register registers[] = {x1, x0, x2}; |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
+} |
+ |
+void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
+ // x3: new target |
+ // x1: target |
+ // x0: number of arguments |
// x2: start index (to supported rest parameters) |
- Register registers[] = {x1, x2}; |
+ Register registers[] = {x1, x3, x0, x2}; |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |