Index: src/arm64/macro-assembler-arm64-inl.h |
diff --git a/src/arm64/macro-assembler-arm64-inl.h b/src/arm64/macro-assembler-arm64-inl.h |
index f7c724842ac55ffb1584d4770962fd0996306c3e..23767e48b371c78d5cbdd472c8f1cc5cbe5d35ba 100644 |
--- a/src/arm64/macro-assembler-arm64-inl.h |
+++ b/src/arm64/macro-assembler-arm64-inl.h |
@@ -13,6 +13,7 @@ |
#include "src/arm64/assembler-arm64.h" |
#include "src/arm64/instrument-arm64.h" |
#include "src/arm64/macro-assembler-arm64.h" |
+#include "src/base/bits.h" |
namespace v8 { |
@@ -1520,7 +1521,7 @@ void MacroAssembler::Claim(uint64_t count, uint64_t unit_size) { |
void MacroAssembler::Claim(const Register& count, uint64_t unit_size) { |
if (unit_size == 0) return; |
- DCHECK(IsPowerOf2(unit_size)); |
+ DCHECK(base::bits::IsPowerOfTwo64(unit_size)); |
const int shift = CountTrailingZeros(unit_size, kXRegSizeInBits); |
const Operand size(count, LSL, shift); |
@@ -1538,7 +1539,7 @@ void MacroAssembler::Claim(const Register& count, uint64_t unit_size) { |
void MacroAssembler::ClaimBySMI(const Register& count_smi, uint64_t unit_size) { |
- DCHECK(unit_size == 0 || IsPowerOf2(unit_size)); |
+ DCHECK(unit_size == 0 || base::bits::IsPowerOfTwo64(unit_size)); |
const int shift = CountTrailingZeros(unit_size, kXRegSizeInBits) - kSmiShift; |
const Operand size(count_smi, |
(shift >= 0) ? (LSL) : (LSR), |
@@ -1578,7 +1579,7 @@ void MacroAssembler::Drop(uint64_t count, uint64_t unit_size) { |
void MacroAssembler::Drop(const Register& count, uint64_t unit_size) { |
if (unit_size == 0) return; |
- DCHECK(IsPowerOf2(unit_size)); |
+ DCHECK(base::bits::IsPowerOfTwo64(unit_size)); |
const int shift = CountTrailingZeros(unit_size, kXRegSizeInBits); |
const Operand size(count, LSL, shift); |
@@ -1599,7 +1600,7 @@ void MacroAssembler::Drop(const Register& count, uint64_t unit_size) { |
void MacroAssembler::DropBySMI(const Register& count_smi, uint64_t unit_size) { |
- DCHECK(unit_size == 0 || IsPowerOf2(unit_size)); |
+ DCHECK(unit_size == 0 || base::bits::IsPowerOfTwo64(unit_size)); |
const int shift = CountTrailingZeros(unit_size, kXRegSizeInBits) - kSmiShift; |
const Operand size(count_smi, |
(shift >= 0) ? (LSL) : (LSR), |