| Index: src/hydrogen-instructions.h
|
| ===================================================================
|
| --- src/hydrogen-instructions.h (revision 10019)
|
| +++ src/hydrogen-instructions.h (working copy)
|
| @@ -2328,6 +2328,12 @@
|
| ASSERT(HasDoubleValue());
|
| return double_value_;
|
| }
|
| + bool HasNumberValue() const { return has_int32_value_ || has_double_value_; }
|
| + int32_t NumberValueAsInteger32() const {
|
| + ASSERT(HasNumberValue());
|
| + if (has_int32_value_) return int32_value_;
|
| + return DoubleToInt32(double_value_);
|
| + }
|
| bool HasStringValue() const { return handle_->IsString(); }
|
|
|
| bool ToBoolean() const;
|
| @@ -2993,6 +2999,11 @@
|
|
|
| virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited);
|
|
|
| + static HInstruction* NewHAdd(Zone* zone,
|
| + HValue* context,
|
| + HValue* left,
|
| + HValue* right);
|
| +
|
| virtual HType CalculateInferredType();
|
|
|
| DECLARE_CONCRETE_INSTRUCTION(Add)
|
| @@ -3013,6 +3024,11 @@
|
|
|
| virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited);
|
|
|
| + static HInstruction* NewHSub(Zone* zone,
|
| + HValue* context,
|
| + HValue* left,
|
| + HValue* right);
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(Sub)
|
|
|
| protected:
|
| @@ -3036,6 +3052,11 @@
|
| return !representation().IsTagged();
|
| }
|
|
|
| + static HInstruction* NewHMul(Zone* zone,
|
| + HValue* context,
|
| + HValue* left,
|
| + HValue* right);
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(Mul)
|
|
|
| protected:
|
| @@ -3064,6 +3085,11 @@
|
|
|
| virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited);
|
|
|
| + static HInstruction* NewHMod(Zone* zone,
|
| + HValue* context,
|
| + HValue* left,
|
| + HValue* right);
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(Mod)
|
|
|
| protected:
|
| @@ -3083,6 +3109,12 @@
|
|
|
| virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited);
|
|
|
| +
|
| + static HInstruction* NewHDiv(Zone* zone,
|
| + HValue* context,
|
| + HValue* left,
|
| + HValue* right);
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(Div)
|
|
|
| protected:
|
| @@ -3105,6 +3137,12 @@
|
|
|
| virtual bool IsCommutative() const { return true; }
|
|
|
| + static HInstruction* NewHBitwise(Zone* zone,
|
| + Token::Value op,
|
| + HValue* context,
|
| + HValue* left,
|
| + HValue* right);
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(Bitwise)
|
|
|
| protected:
|
| @@ -3126,6 +3164,11 @@
|
|
|
| virtual Range* InferRange();
|
|
|
| + static HInstruction* NewHShl(Zone* zone,
|
| + HValue* context,
|
| + HValue* left,
|
| + HValue* right);
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(Shl)
|
|
|
| protected:
|
| @@ -3140,6 +3183,11 @@
|
|
|
| virtual Range* InferRange();
|
|
|
| + static HInstruction* NewHShr(Zone* zone,
|
| + HValue* context,
|
| + HValue* left,
|
| + HValue* right);
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(Shr)
|
|
|
| protected:
|
| @@ -3154,6 +3202,11 @@
|
|
|
| virtual Range* InferRange();
|
|
|
| + static HInstruction* NewHSar(Zone* zone,
|
| + HValue* context,
|
| + HValue* left,
|
| + HValue* right);
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(Sar)
|
|
|
| protected:
|
|
|