diff options
Diffstat (limited to 'deps/v8/src/hydrogen-instructions.h')
-rw-r--r-- | deps/v8/src/hydrogen-instructions.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/src/hydrogen-instructions.h b/deps/v8/src/hydrogen-instructions.h index 6853dfe100..cfbcc135df 100644 --- a/deps/v8/src/hydrogen-instructions.h +++ b/deps/v8/src/hydrogen-instructions.h @@ -1001,6 +1001,7 @@ class HValue: public ZoneObject { bool IsInteger32Constant(); int32_t GetInteger32Constant(); + bool EqualsInteger32Constant(int32_t value); bool IsDefinedAfter(HBasicBlock* other) const; @@ -3328,10 +3329,6 @@ class HConstant: public HTemplateInstruction<0> { bool BooleanValue() const { return boolean_value_; } - bool IsUint32() { - return HasInteger32Value() && (Integer32Value() >= 0); - } - virtual intptr_t Hashcode() { if (has_int32_value_) { return static_cast<intptr_t>(int32_value_); @@ -3842,6 +3839,8 @@ class HArithmeticBinaryOperation: public HBinaryOperation { : representation(); } + virtual HValue* Canonicalize(); + private: virtual bool IsDeletable() const { return true; } }; @@ -4401,6 +4400,8 @@ class HMul: public HArithmeticBinaryOperation { virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited); + virtual HValue* Canonicalize(); + // Only commutative if it is certain that not two objects are multiplicated. virtual bool IsCommutative() const { return !representation().IsTagged(); |