Index: src/x64/interface-descriptors-x64.cc |
diff --git a/src/x64/interface-descriptors-x64.cc b/src/x64/interface-descriptors-x64.cc |
index ac0edaaa4961e3b1969f501f9e2fb5be219a2245..6b9c79dd06fdf76c694e9ee135204f356dcad604 100644 |
--- a/src/x64/interface-descriptors-x64.cc |
+++ b/src/x64/interface-descriptors-x64.cc |
@@ -266,19 +266,14 @@ void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific( |
data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void ArrayConstructorDescriptor::InitializePlatformSpecific( |
+void ArrayNArgumentsConstructorDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
- // stack param count needs (constructor pointer, and single argument) |
+ // register state |
+ // rax -- number of arguments |
+ // rdi -- function |
+ // rbx -- allocation site with elements kind |
Register registers[] = {rdi, rbx, rax}; |
- data->InitializePlatformSpecific(arraysize(registers), registers); |
-} |
- |
- |
-void InternalArrayConstructorDescriptor::InitializePlatformSpecific( |
- CallInterfaceDescriptorData* data) { |
- // stack param count needs (constructor pointer, and single argument) |
- Register registers[] = {rdi, rax}; |
- data->InitializePlatformSpecific(arraysize(registers), registers); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
void VarArgFunctionDescriptor::InitializePlatformSpecific( |