Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 94f09aaaa19a7a8265a330037dd1619f19895d9b..82d8a794d115f4b6ce19d7ddaf05ad9fddf329f8 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4534,7 +4534,7 @@ void StringCharCodeAtGenerator::GenerateSlow( |
void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { |
// Fast case of Heap::LookupSingleCharacterStringFromCode. |
__ JumpIfNotSmi(code_, &slow_case_); |
- __ SmiCompare(code_, Smi::FromInt(String::kMaxAsciiCharCode)); |
+ __ SmiCompare(code_, Smi::FromInt(String::kMaxOneByteCharCode)); |
__ j(above, &slow_case_); |
__ LoadRoot(result_, Heap::kSingleCharacterStringCacheRootIndex); |