Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 97d05a60225c33758d8153b5bf6b80c8186c1b95..38ab0e9a183fcf01539ae4617b73b85393bbe2a2 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -1081,7 +1081,7 @@ void MacroAssembler::LeaveExitFrame(bool save_doubles, |
} |
-void MacroAssembler::GetCFunctionDoubleResult(const DwVfpRegister dst) { |
+void MacroAssembler::MovFromFloatResult(const DwVfpRegister dst) { |
if (use_eabi_hardfloat()) { |
Move(dst, d0); |
} else { |
@@ -1090,6 +1090,12 @@ void MacroAssembler::GetCFunctionDoubleResult(const DwVfpRegister dst) { |
} |
+// On ARM this is just a synonym to make the purpose clear. |
+void MacroAssembler::MovFromFloatParameter(DwVfpRegister dst) { |
+ MovFromFloatResult(dst); |
+} |
+ |
+ |
void MacroAssembler::SetCallKind(Register dst, CallKind call_kind) { |
// This macro takes the dst register to make the code more readable |
// at the call sites. However, the dst register has to be r5 to |
@@ -3540,33 +3546,27 @@ void MacroAssembler::PrepareCallCFunction(int num_reg_arguments, |
} |
-void MacroAssembler::SetCallCDoubleArguments(DwVfpRegister dreg) { |
- ASSERT(dreg.is(d0)); |
+void MacroAssembler::MovToFloatParameter(DwVfpRegister src) { |
+ ASSERT(src.is(d0)); |
if (!use_eabi_hardfloat()) { |
- vmov(r0, r1, dreg); |
+ vmov(r0, r1, src); |
} |
} |
-void MacroAssembler::SetCallCDoubleArguments(DwVfpRegister dreg1, |
- DwVfpRegister dreg2) { |
- ASSERT(dreg1.is(d0)); |
- ASSERT(dreg2.is(d1)); |
- if (!use_eabi_hardfloat()) { |
- vmov(r0, r1, dreg1); |
- vmov(r2, r3, dreg2); |
- } |
+// On ARM this is just a synonym to make the purpose clear. |
+void MacroAssembler::MovToFloatResult(DwVfpRegister src) { |
+ MovToFloatParameter(src); |
} |
-void MacroAssembler::SetCallCDoubleArguments(DwVfpRegister dreg, |
- Register reg) { |
- ASSERT(dreg.is(d0)); |
- if (use_eabi_hardfloat()) { |
- Move(r0, reg); |
- } else { |
- Move(r2, reg); |
- vmov(r0, r1, dreg); |
+void MacroAssembler::MovToFloatParameters(DwVfpRegister src1, |
+ DwVfpRegister src2) { |
+ ASSERT(src1.is(d0)); |
+ ASSERT(src2.is(d1)); |
+ if (!use_eabi_hardfloat()) { |
+ vmov(r0, r1, src1); |
+ vmov(r2, r3, src2); |
} |
} |