| Index: src/ia32/lithium-gap-resolver-ia32.cc
|
| ===================================================================
|
| --- src/ia32/lithium-gap-resolver-ia32.cc (revision 8519)
|
| +++ src/ia32/lithium-gap-resolver-ia32.cc (working copy)
|
| @@ -305,8 +305,13 @@
|
| } else if (source->IsConstantOperand()) {
|
| ASSERT(destination->IsRegister() || destination->IsStackSlot());
|
| Immediate src = cgen_->ToImmediate(source);
|
| - Operand dst = cgen_->ToOperand(destination);
|
| - __ mov(dst, src);
|
| + if (destination->IsRegister()) {
|
| + Register dst = cgen_->ToRegister(destination);
|
| + __ Set(dst, src);
|
| + } else {
|
| + Operand dst = cgen_->ToOperand(destination);
|
| + __ Set(dst, src);
|
| + }
|
|
|
| } else if (source->IsDoubleRegister()) {
|
| XMMRegister src = cgen_->ToDoubleRegister(source);
|
|
|