Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 70d601b2e6e0399fe4ceabb0ae11ef1e6a094be3..d7f008141e1dca7f1dd6810220a1327535e10e83 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1537,9 +1537,9 @@ void MacroAssembler::Throw(BailoutReason reason) { |
} |
-void MacroAssembler::ThrowIf(Condition cc, BailoutReason reason) { |
+void MacroAssembler::ThrowIf(Condition cond, BailoutReason reason) { |
Label ok; |
- B(InvertCondition(cc), &ok); |
+ B(InvertCondition(cond), &ok); |
Throw(reason); |
Bind(&ok); |
} |
@@ -3309,8 +3309,7 @@ void MacroAssembler::Allocate(int object_size, |
// Calculate new top and bail out if new space is exhausted. |
Adds(scratch3, result, object_size); |
- B(vs, gc_required); |
- Cmp(scratch3, allocation_limit); |
+ Ccmp(scratch3, allocation_limit, CFlag, cc); |
B(hi, gc_required); |
Str(scratch3, MemOperand(top_address)); |
@@ -3391,8 +3390,7 @@ void MacroAssembler::Allocate(Register object_size, |
Check(eq, kUnalignedAllocationInNewSpace); |
} |
- B(vs, gc_required); |
- Cmp(scratch3, allocation_limit); |
+ Ccmp(scratch3, allocation_limit, CFlag, cc); |
B(hi, gc_required); |
Str(scratch3, MemOperand(top_address)); |