| Index: src/x64/stub-cache-x64.cc
|
| ===================================================================
|
| --- src/x64/stub-cache-x64.cc (revision 9006)
|
| +++ src/x64/stub-cache-x64.cc (working copy)
|
| @@ -3267,7 +3267,7 @@
|
| // Check that the index is in range.
|
| __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset));
|
| __ SmiToInteger32(rcx, rax);
|
| - __ cmpl(rcx, FieldOperand(rbx, ExternalArray::kLengthOffset));
|
| + __ cmpq(rax, FieldOperand(rbx, ExternalArray::kLengthOffset));
|
| // Unsigned comparison catches both negative and too-large values.
|
| __ j(above_equal, &miss_force_generic);
|
|
|
| @@ -3402,7 +3402,7 @@
|
| // Check that the index is in range.
|
| __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset));
|
| __ SmiToInteger32(rdi, rcx); // Untag the index.
|
| - __ cmpl(rdi, FieldOperand(rbx, ExternalArray::kLengthOffset));
|
| + __ cmpq(rcx, FieldOperand(rbx, ExternalArray::kLengthOffset));
|
| // Unsigned comparison catches both negative and too-large values.
|
| __ j(above_equal, &miss_force_generic);
|
|
|
|
|