Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index 875b798bdafd19c431af1ea4992069bc6e18bbaa..6aae562bde48b4374edab8f527b430d0f14c9e39 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -2716,10 +2716,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(); |