| Index: src/hydrogen-instructions.h
|
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
|
| index 887168cc755d6779be50924c417fb3c79d9b776f..d923aa2846c65051d4ec4c9f02f5531d78d8fbff 100644
|
| --- a/src/hydrogen-instructions.h
|
| +++ b/src/hydrogen-instructions.h
|
| @@ -3478,10 +3478,16 @@ class HBinaryOperation: public HTemplateInstruction<3> {
|
| if (left()->IsConstant()) return true;
|
| if (right()->IsConstant()) return false;
|
|
|
| +#ifdef V8_BETTER_OPERAND_ON_RIGHT
|
| + // Otherwise, if there is only one use of the left operand, the define
|
| + // says it would be better off on the right.
|
| + return (left()->UseCount() == 1);
|
| +#else
|
| // Otherwise, if there is only one use of the right operand, it would be
|
| // better off on the left for platforms that only have 2-arg arithmetic
|
| // ops (e.g ia32, x64) that clobber the left operand.
|
| return right()->UseCount() == 1;
|
| +#endif
|
| }
|
|
|
| HValue* BetterLeftOperand() {
|
|
|