Index: src/arm64/interface-descriptors-arm64.cc |
diff --git a/src/arm64/interface-descriptors-arm64.cc b/src/arm64/interface-descriptors-arm64.cc |
index d23eb58dedcdb602d05929cec2f705662a79c6a6..2504f291ac0fa2156c3d2c7ed8c87bbfc415a807 100644 |
--- a/src/arm64/interface-descriptors-arm64.cc |
+++ b/src/arm64/interface-descriptors-arm64.cc |
@@ -280,16 +280,16 @@ void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( |
data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( |
+void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
+ // register state |
+ // x0: number of arguments |
// x1: function |
// x2: allocation site with elements kind |
- // x0: number of arguments to the constructor function |
- Register registers[] = {x1, x2}; |
- data->InitializePlatformSpecific(arraysize(registers), registers); |
+ Register registers[] = {x1, x2, x0}; |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
- |
void ArrayConstructorDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
// stack param count needs (constructor pointer, and single argument) |
@@ -298,15 +298,6 @@ void ArrayConstructorDescriptor::InitializePlatformSpecific( |
} |
-void InternalArrayConstructorConstantArgCountDescriptor:: |
- InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
- // x1: constructor function |
- // x0: number of arguments to the constructor function |
- Register registers[] = {x1}; |
- data->InitializePlatformSpecific(arraysize(registers), registers); |
-} |
- |
- |
void InternalArrayConstructorDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
// stack param count needs (constructor pointer, and single argument) |