Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index e7c11e7bc621cf2c9e363797f81505f56e405a3d..1d76f6e3d713b10942e1bd46663a5b6012f2ccc5 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -3190,12 +3190,11 @@ void StringCharCodeAtGenerator::GenerateSlow( |
void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { |
// Fast case of Heap::LookupSingleCharacterStringFromCode. |
- DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCode + 1)); |
- __ LoadSmiLiteral(r0, Smi::FromInt(~String::kMaxOneByteCharCode)); |
+ DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCodeU + 1)); |
+ __ LoadSmiLiteral(r0, Smi::FromInt(~String::kMaxOneByteCharCodeU)); |
__ ori(r0, r0, Operand(kSmiTagMask)); |
- __ and_(r0, code_, r0); |
- __ cmpi(r0, Operand::Zero()); |
- __ bne(&slow_case_); |
+ __ and_(r0, code_, r0, SetRC); |
+ __ bne(&slow_case_, cr0); |
__ LoadRoot(result_, Heap::kSingleCharacterStringCacheRootIndex); |
// At this point code register contains smi tagged one-byte char code. |