Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index 94d13a0bc95ae7e7810fa2867853f2d15b0dcec8..8f28607491a2413dc22fd2e1b989a2c4fe546eee 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -6,6 +6,7 @@ |
#if V8_TARGET_ARCH_X87 |
+#include "src/base/bits.h" |
#include "src/bootstrapper.h" |
#include "src/code-stubs.h" |
#include "src/codegen.h" |
@@ -2508,7 +2509,7 @@ void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { |
// Fast case of Heap::LookupSingleCharacterStringFromCode. |
STATIC_ASSERT(kSmiTag == 0); |
STATIC_ASSERT(kSmiShiftSize == 0); |
- DCHECK(IsPowerOf2(String::kMaxOneByteCharCode + 1)); |
+ DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCode + 1)); |
__ test(code_, |
Immediate(kSmiTagMask | |
((~String::kMaxOneByteCharCode) << kSmiTagSize))); |