Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index 806af12b55b3631e9818d1af24a9e5746ae0d118..b03ac2467ec1a40450355e4be5bf777b81c4d4db 100644 |
--- a/src/runtime/runtime-array.cc |
+++ b/src/runtime/runtime-array.cc |
@@ -1068,8 +1068,8 @@ static Object* ArrayConstructorCommon(Isolate* isolate, |
Handle<Object> argument_one = caller_args->at<Object>(0); |
if (argument_one->IsSmi()) { |
int value = Handle<Smi>::cast(argument_one)->value(); |
- if (value < 0 || JSArray::SetElementsLengthWouldNormalize(isolate->heap(), |
- argument_one)) { |
+ if (value < 0 || |
+ JSArray::SetLengthWouldNormalize(isolate->heap(), value)) { |
// the array is a dictionary in this case. |
can_use_type_feedback = false; |
} else if (value != 0) { |