Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 7079dc9f775aed5079812e44e94203827066916f..e68474863524e1bd5c71bcb1c4d80778ddb51fff 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -3026,10 +3026,9 @@ void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { |
// Fast case of Heap::LookupSingleCharacterStringFromCode. |
STATIC_ASSERT(kSmiTag == 0); |
STATIC_ASSERT(kSmiShiftSize == 0); |
- DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCode + 1)); |
- __ test(code_, |
- Immediate(kSmiTagMask | |
- ((~String::kMaxOneByteCharCode) << kSmiTagSize))); |
+ DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCodeU + 1)); |
+ __ test(code_, Immediate(kSmiTagMask | |
+ ((~String::kMaxOneByteCharCodeU) << kSmiTagSize))); |
__ j(not_zero, &slow_case_); |
Factory* factory = masm->isolate()->factory(); |