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 4fd6d76c89f8186a9ce26edea1dbf1b9073a52c5..38b5d4b7518fc705f184ec38137f1c3004e8d650 100644 |
--- a/src/arm64/macro-assembler-arm64-inl.h |
+++ b/src/arm64/macro-assembler-arm64-inl.h |
@@ -1513,12 +1513,9 @@ 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; |
ASSERT(IsPowerOf2(unit_size)); |
- if (unit_size == 0) { |
- return; |
- } |
- |
const int shift = CountTrailingZeros(unit_size, kXRegSizeInBits); |
const Operand size(count, LSL, shift); |
@@ -1574,12 +1571,9 @@ 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; |
ASSERT(IsPowerOf2(unit_size)); |
- if (unit_size == 0) { |
- return; |
- } |
- |
const int shift = CountTrailingZeros(unit_size, kXRegSizeInBits); |
const Operand size(count, LSL, shift); |