Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 0c490dd5f1801e1a975e5f118fef7a646e4c8613..1038999141adcfbc817705631156f387ce5eca9a 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -4868,7 +4868,7 @@ void MacroAssembler::EnterExitFrame(bool save_doubles, |
DCHECK(stack_space >= 0); |
Dsubu(sp, sp, Operand((stack_space + 2) * kPointerSize)); |
if (frame_alignment > 0) { |
- DCHECK(IsPowerOf2(frame_alignment)); |
+ DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); |
And(sp, sp, Operand(-frame_alignment)); // Align stack. |
} |
@@ -4966,7 +4966,7 @@ void MacroAssembler::AssertStackIsAligned() { |
if (frame_alignment > kPointerSize) { |
Label alignment_as_expected; |
- DCHECK(IsPowerOf2(frame_alignment)); |
+ DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); |
andi(at, sp, frame_alignment_mask); |
Branch(&alignment_as_expected, eq, at, Operand(zero_reg)); |
// Don't use Check here, as it will call Runtime_Abort re-entering here. |
@@ -5430,7 +5430,7 @@ void MacroAssembler::PrepareCallCFunction(int num_reg_arguments, |
// and the original value of sp. |
mov(scratch, sp); |
Dsubu(sp, sp, Operand((stack_passed_arguments + 1) * kPointerSize)); |
- DCHECK(IsPowerOf2(frame_alignment)); |
+ DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); |
And(sp, sp, Operand(-frame_alignment)); |
sd(scratch, MemOperand(sp, stack_passed_arguments * kPointerSize)); |
} else { |
@@ -5487,7 +5487,7 @@ void MacroAssembler::CallCFunctionHelper(Register function, |
int frame_alignment = base::OS::ActivationFrameAlignment(); |
int frame_alignment_mask = frame_alignment - 1; |
if (frame_alignment > kPointerSize) { |
- DCHECK(IsPowerOf2(frame_alignment)); |
+ DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); |
Label alignment_as_expected; |
And(at, sp, Operand(frame_alignment_mask)); |
Branch(&alignment_as_expected, eq, at, Operand(zero_reg)); |