Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 1ff2bd6ebc4e6985ee4bae946769a0c8e691cfbd..70c71368c1339e36d08936c3fcfe88d57fe31df9 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -4384,6 +4384,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, |