Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index d8cd59cf50433b59fc97a43eef6d26b823ff8c79..5dc733ad9b90f20df178217c5d8e6812a9b507d3 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -38,6 +38,7 @@ |
#if V8_TARGET_ARCH_IA32 |
+#include "src/base/bits.h" |
#include "src/base/cpu.h" |
#include "src/disassembler.h" |
#include "src/macro-assembler.h" |
@@ -271,7 +272,7 @@ void Assembler::GetCode(CodeDesc* desc) { |
void Assembler::Align(int m) { |
- DCHECK(IsPowerOf2(m)); |
+ DCHECK(base::bits::IsPowerOfTwo32(m)); |
int mask = m - 1; |
int addr = pc_offset(); |
Nop((m - (addr & mask)) & mask); |