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
parent e7585af6
...@@ -254,7 +254,7 @@ void LGapResolver::EmitMove(int index) { ...@@ -254,7 +254,7 @@ void LGapResolver::EmitMove(int index) {
} else { } else {
__ LoadObject(dst, cgen_->ToHandle(constant_source)); __ LoadObject(dst, cgen_->ToHandle(constant_source));
} }
} else if (source->IsDoubleRegister()) { } else if (destination->IsDoubleRegister()) {
DwVfpRegister result = cgen_->ToDoubleRegister(destination); DwVfpRegister result = cgen_->ToDoubleRegister(destination);
double v = cgen_->ToDouble(constant_source); double v = cgen_->ToDouble(constant_source);
__ Vmov(result, v, ip); __ Vmov(result, v, ip);
......
...@@ -258,7 +258,7 @@ void LGapResolver::EmitMove(int index) { ...@@ -258,7 +258,7 @@ void LGapResolver::EmitMove(int index) {
} else { } else {
__ LoadObject(dst, cgen_->ToHandle(constant_source)); __ LoadObject(dst, cgen_->ToHandle(constant_source));
} }
} else if (source->IsDoubleRegister()) { } else if (destination->IsDoubleRegister()) {
DoubleRegister result = cgen_->ToDoubleRegister(destination); DoubleRegister result = cgen_->ToDoubleRegister(destination);
double v = cgen_->ToDouble(constant_source); double v = cgen_->ToDouble(constant_source);
__ Move(result, v); __ Move(result, v);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment