Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 08c19ba6dbb54111d3da039030f95fe94282b2b6..0dead6b793cfe0077f0c1ed527bf8657563527b5 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -715,7 +715,7 @@ static void ArrayNativeCode(MacroAssembler* masm, |
__ cmpq(rax, Immediate(1)); |
__ j(not_equal, &argc_two_or_more); |
__ movq(rdx, Operand(rsp, kPointerSize)); // Get the argument from the stack. |
- __ JumpIfNotPositiveSmi(rdx, call_generic_code); |
+ __ JumpUnlessNonNegativeSmi(rdx, call_generic_code); |
// Handle construction of an empty array of a certain size. Bail out if size |
// is to large to actually allocate an elements array. |