Index: src/arm/macro-assembler-arm.cc |
=================================================================== |
--- src/arm/macro-assembler-arm.cc (revision 4738) |
+++ src/arm/macro-assembler-arm.cc (working copy) |
@@ -183,15 +183,18 @@ |
} |
-void MacroAssembler::Swap(Register reg1, Register reg2, Register scratch) { |
+void MacroAssembler::Swap(Register reg1, |
+ Register reg2, |
+ Register scratch, |
+ Condition cond) { |
if (scratch.is(no_reg)) { |
- eor(reg1, reg1, Operand(reg2)); |
- eor(reg2, reg2, Operand(reg1)); |
- eor(reg1, reg1, Operand(reg2)); |
+ eor(reg1, reg1, Operand(reg2), LeaveCC, cond); |
+ eor(reg2, reg2, Operand(reg1), LeaveCC, cond); |
+ eor(reg1, reg1, Operand(reg2), LeaveCC, cond); |
} else { |
- mov(scratch, reg1); |
- mov(reg1, reg2); |
- mov(reg2, scratch); |
+ mov(scratch, reg1, LeaveCC, cond); |
+ mov(reg1, reg2, LeaveCC, cond); |
+ mov(reg2, scratch, LeaveCC, cond); |
} |
} |