Commit 562adac5 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Generate shorter instruction forms for constant in ia32 gap resolver.

Review URL: http://codereview.chromium.org//7277084

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8574 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7cbf0a4d
......@@ -305,8 +305,13 @@ void LGapResolver::EmitMove(int index) {
} 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);
......
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