Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 90a72ada64bb785e5f433e0ce9a82d608ceef496..094387a23e50091b8e6e982cb29168d9d1658a15 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -3198,11 +3198,9 @@ void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { |
DCHECK(!a4.is(code_)); |
STATIC_ASSERT(kSmiTag == 0); |
- DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCode + 1)); |
- __ And(a4, |
- code_, |
- Operand(kSmiTagMask | |
- ((~String::kMaxOneByteCharCode) << kSmiTagSize))); |
+ DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCodeU + 1)); |
+ __ And(a4, code_, Operand(kSmiTagMask | |
+ ((~String::kMaxOneByteCharCodeU) << kSmiTagSize))); |
__ Branch(&slow_case_, ne, a4, Operand(zero_reg)); |