Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 3722f1465939fa78d5933eeb9582871750031965..b55b1fcf579afb7a16912a418b690eb9c4c0bf68 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -4372,6 +4372,7 @@ void LCodeGen::DoStringCharFromCode(LStringCharFromCode* instr) { |
__ cmpl(char_code, Immediate(String::kMaxOneByteCharCode)); |
__ j(above, deferred->entry()); |
+ __ movsxlq(char_code, char_code); |
__ LoadRoot(result, Heap::kSingleCharacterStringCacheRootIndex); |
__ movq(result, FieldOperand(result, |
char_code, times_pointer_size, |