Index: src/hydrogen-instructions.h |
=================================================================== |
--- src/hydrogen-instructions.h (revision 6384) |
+++ src/hydrogen-instructions.h (working copy) |
@@ -773,6 +773,10 @@ |
virtual void Verify() const; |
#endif |
+ // Returns whether this is some kind of deoptimizing check |
+ // instruction. |
+ virtual bool IsCheckInstruction() const { return false; } |
+ |
DECLARE_INSTRUCTION(Instruction) |
protected: |
@@ -1504,6 +1508,8 @@ |
SetFlag(kDependsOnMaps); |
} |
+ virtual bool IsCheckInstruction() const { return true; } |
+ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
@@ -1537,6 +1543,8 @@ |
SetFlag(kUseGVN); |
} |
+ virtual bool IsCheckInstruction() const { return true; } |
+ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
@@ -1573,6 +1581,8 @@ |
SetFlag(kUseGVN); |
} |
+ virtual bool IsCheckInstruction() const { return true; } |
+ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
@@ -1610,6 +1620,8 @@ |
SetFlag(kUseGVN); |
} |
+ virtual bool IsCheckInstruction() const { return true; } |
+ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
@@ -1632,6 +1644,8 @@ |
SetFlag(kDependsOnMaps); |
} |
+ virtual bool IsCheckInstruction() const { return true; } |
+ |
#ifdef DEBUG |
virtual void Verify() const; |
#endif |
@@ -1668,6 +1682,8 @@ |
SetFlag(kUseGVN); |
} |
+ virtual bool IsCheckInstruction() const { return true; } |
+ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Tagged(); |
} |
@@ -1996,6 +2012,8 @@ |
SetFlag(kUseGVN); |
} |
+ virtual bool IsCheckInstruction() const { return true; } |
+ |
virtual Representation RequiredInputRepresentation(int index) const { |
return Representation::Integer32(); |
} |