Index: src/x64/interface-descriptors-x64.cc |
diff --git a/src/x64/interface-descriptors-x64.cc b/src/x64/interface-descriptors-x64.cc |
index daba8d42d6fa263ae5e9e02d5dcc24029efca94d..1368c5e6c76c7d247fefe247146ba859370a81a6 100644 |
--- a/src/x64/interface-descriptors-x64.cc |
+++ b/src/x64/interface-descriptors-x64.cc |
@@ -189,7 +189,7 @@ void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( |
} |
-void CallConstructDescriptor::InitializePlatformSpecific( |
+void ConstructDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
// rax : number of arguments |
// rbx : feedback vector |
@@ -197,7 +197,7 @@ void CallConstructDescriptor::InitializePlatformSpecific( |
// rdi : constructor function |
// TODO(turbofan): So far we don't gather type feedback and hence skip the |
// slot parameter, but ArrayConstructStub needs the vector to be undefined. |
- Register registers[] = {rax, rdi, rbx}; |
+ Register registers[] = {rax, rbx, rdx, rdi}; |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |