Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index e79608fdf97494286a347b6094feb812804706f5..816b9c87c3aca2e9aab808ccfb3886504431d642 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -6,6 +6,7 @@ |
#if V8_TARGET_ARCH_MIPS |
+#include "src/base/bits.h" |
#include "src/bootstrapper.h" |
#include "src/code-stubs.h" |
#include "src/codegen.h" |
@@ -3108,7 +3109,7 @@ void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { |
STATIC_ASSERT(kSmiTag == 0); |
STATIC_ASSERT(kSmiShiftSize == 0); |
- DCHECK(IsPowerOf2(String::kMaxOneByteCharCode + 1)); |
+ DCHECK(base::bits::IsPowerOfTwo32(String::kMaxOneByteCharCode + 1)); |
__ And(t0, |
code_, |
Operand(kSmiTagMask | |
@@ -4613,7 +4614,7 @@ void ProfileEntryHookStub::Generate(MacroAssembler* masm) { |
int frame_alignment = masm->ActivationFrameAlignment(); |
if (frame_alignment > kPointerSize) { |
__ mov(s5, sp); |
- DCHECK(IsPowerOf2(frame_alignment)); |
+ DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); |
__ And(sp, sp, Operand(-frame_alignment)); |
} |
__ Subu(sp, sp, kCArgsSlotsSize); |