| Index: src/hydrogen-instructions.h
|
| ===================================================================
|
| --- src/hydrogen-instructions.h (revision 13175)
|
| +++ src/hydrogen-instructions.h (working copy)
|
| @@ -3659,6 +3659,16 @@
|
| SetFlag(kCanOverflow);
|
| }
|
|
|
| + bool HasPowerOf2Divisor() {
|
| + if (right()->IsConstant() &&
|
| + HConstant::cast(right())->HasInteger32Value()) {
|
| + int32_t value = HConstant::cast(right())->Integer32Value();
|
| + return value != 0 && (IsPowerOf2(value) || IsPowerOf2(-value));
|
| + }
|
| +
|
| + return false;
|
| + }
|
| +
|
| virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited);
|
|
|
| static HInstruction* NewHDiv(Zone* zone,
|
|
|