From 25ffcc3407f8d203668f15bb02e08257cbcf3a96 Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Tue, 6 Aug 2013 14:46:50 +0000 Subject: [PATCH] ARM/MIPS: Fix Constant-to-DoubleRegister moves in LGapResolver R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/22314010 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16081 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/arm/lithium-gap-resolver-arm.cc | 2 +- src/mips/lithium-gap-resolver-mips.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arm/lithium-gap-resolver-arm.cc b/src/arm/lithium-gap-resolver-arm.cc index 7a3c96892c..88ac7a2a21 100644 --- a/src/arm/lithium-gap-resolver-arm.cc +++ b/src/arm/lithium-gap-resolver-arm.cc @@ -254,7 +254,7 @@ void LGapResolver::EmitMove(int index) { } else { __ LoadObject(dst, cgen_->ToHandle(constant_source)); } - } else if (source->IsDoubleRegister()) { + } else if (destination->IsDoubleRegister()) { DwVfpRegister result = cgen_->ToDoubleRegister(destination); double v = cgen_->ToDouble(constant_source); __ Vmov(result, v, ip); diff --git a/src/mips/lithium-gap-resolver-mips.cc b/src/mips/lithium-gap-resolver-mips.cc index 771b22862e..460e13bf0a 100644 --- a/src/mips/lithium-gap-resolver-mips.cc +++ b/src/mips/lithium-gap-resolver-mips.cc @@ -258,7 +258,7 @@ void LGapResolver::EmitMove(int index) { } else { __ LoadObject(dst, cgen_->ToHandle(constant_source)); } - } else if (source->IsDoubleRegister()) { + } else if (destination->IsDoubleRegister()) { DoubleRegister result = cgen_->ToDoubleRegister(destination); double v = cgen_->ToDouble(constant_source); __ Move(result, v);