Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 1f40bf7a083ba0f35e5cd09274cca8293de69986..7556e6cf9ac6cddb2489d9dd42348837ae7886c4 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -6,6 +6,7 @@ |
#if V8_TARGET_ARCH_IA32 |
+#include "src/base/bits.h" |
#include "src/code-stubs.h" |
#include "src/codegen.h" |
#include "src/deoptimizer.h" |
@@ -1218,7 +1219,7 @@ void LCodeGen::DoDivByPowerOf2I(LDivByPowerOf2I* instr) { |
Register dividend = ToRegister(instr->dividend()); |
int32_t divisor = instr->divisor(); |
Register result = ToRegister(instr->result()); |
- DCHECK(divisor == kMinInt || IsPowerOf2(Abs(divisor))); |
+ DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); |
DCHECK(!result.is(dividend)); |
// Check for (0 / -x) that will produce negative zero. |
@@ -4903,8 +4904,8 @@ void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { |
uint8_t tag; |
instr->hydrogen()->GetCheckMaskAndTag(&mask, &tag); |
- if (IsPowerOf2(mask)) { |
- DCHECK(tag == 0 || IsPowerOf2(tag)); |
+ if (base::bits::IsPowerOfTwo32(mask)) { |
+ DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag)); |
__ test_b(FieldOperand(temp, Map::kInstanceTypeOffset), mask); |
DeoptimizeIf(tag == 0 ? not_zero : zero, instr->environment()); |
} else { |