| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index 809942b065560773789a131804cb10452090bd61..74c90b2e279f69c66e04d4e6170e37b0d5e0b79f 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -304,10 +304,13 @@ class HGraph: public ZoneObject {
|
| HConstant* GetConstantUndefined() const { return undefined_constant_.get(); }
|
| HConstant* GetConstant0();
|
| HConstant* GetConstant1();
|
| + HConstant* GetConstantSmi0();
|
| + HConstant* GetConstantSmi1();
|
| HConstant* GetConstantMinus1();
|
| HConstant* GetConstantTrue();
|
| HConstant* GetConstantFalse();
|
| HConstant* GetConstantHole();
|
| + HConstant* GetConstantNull();
|
| HConstant* GetInvalidContext();
|
|
|
| HBasicBlock* CreateBasicBlock();
|
| @@ -395,6 +398,8 @@ class HGraph: public ZoneObject {
|
| private:
|
| HConstant* GetConstantInt32(SetOncePointer<HConstant>* pointer,
|
| int32_t integer_value);
|
| + HConstant* GetConstantSmi(SetOncePointer<HConstant>* pointer,
|
| + int32_t integer_value);
|
|
|
| void MarkAsDeoptimizingRecursively(HBasicBlock* block);
|
| void NullifyUnreachableInstructions();
|
| @@ -424,10 +429,13 @@ class HGraph: public ZoneObject {
|
| SetOncePointer<HConstant> undefined_constant_;
|
| SetOncePointer<HConstant> constant_0_;
|
| SetOncePointer<HConstant> constant_1_;
|
| + SetOncePointer<HConstant> constant_smi_0_;
|
| + SetOncePointer<HConstant> constant_smi_1_;
|
| SetOncePointer<HConstant> constant_minus1_;
|
| SetOncePointer<HConstant> constant_true_;
|
| SetOncePointer<HConstant> constant_false_;
|
| SetOncePointer<HConstant> constant_the_hole_;
|
| + SetOncePointer<HConstant> constant_null_;
|
| SetOncePointer<HConstant> constant_invalid_context_;
|
| SetOncePointer<HArgumentsObject> arguments_object_;
|
|
|
| @@ -1023,6 +1031,7 @@ class HGraphBuilder {
|
| HValue* CheckNotUndefined(HValue* value);
|
| HValue* CheckIntegerCompare(HValue* left, HValue* right, Token::Value op);
|
| HValue* CheckIntegerEq(HValue* left, HValue* right);
|
| +
|
| void End();
|
|
|
| private:
|
| @@ -1250,6 +1259,14 @@ class HGraphBuilder {
|
| ElementsKind kind,
|
| int length);
|
|
|
| + void BuildCompareNil(
|
| + HValue* value,
|
| + EqualityKind kind,
|
| + CompareNilICStub::Types types,
|
| + Handle<Map> map,
|
| + int position,
|
| + HIfContinuation* continuation);
|
| +
|
| private:
|
| HGraphBuilder();
|
| CompilationInfo* info_;
|
|
|