| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index 27bfe15e3378e93db232e51441784415a41e7a63..60f1644ce9342cd557414740f88ad11ed75fdbc8 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -1421,6 +1421,11 @@ void LCodeGen::DoMathMinMax(LMathMinMax* instr) {
|
| __ cmpq(left_reg, right_imm);
|
| __ j(condition, &return_left, Label::kNear);
|
| __ movq(left_reg, right_imm);
|
| + } else if (right->IsRegister()) {
|
| + Register right_reg = ToRegister(right);
|
| + __ cmpq(left_reg, right_reg);
|
| + __ j(condition, &return_left, Label::kNear);
|
| + __ movq(left_reg, right_reg);
|
| } else {
|
| Operand right_op = ToOperand(right);
|
| __ cmpq(left_reg, right_op);
|
|
|