Index: src/x64/codegen-x64.cc |
diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc |
index d2ac163b7ad0f90e2e87bfe9163a8eb8a963f2a2..9a60ba66e0f1f48cb6a0ec4d4b9ecc862654a6ef 100644 |
--- a/src/x64/codegen-x64.cc |
+++ b/src/x64/codegen-x64.cc |
@@ -5746,7 +5746,7 @@ void ToBooleanStub::Generate(MacroAssembler* masm) { |
__ and_(rcx, Immediate(kStringSizeMask)); |
__ cmpq(rcx, Immediate(kShortStringTag)); |
__ j(not_equal, &true_result); // Empty string is always short. |
- __ movq(rdx, FieldOperand(rax, String::kLengthOffset)); |
+ __ movl(rdx, FieldOperand(rax, String::kLengthOffset)); |
__ shr(rdx, Immediate(String::kShortLengthShift)); |
__ j(zero, &false_result); |
__ jmp(&true_result); |