diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-01-19 11:06:13 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-01-19 11:06:13 -0800 |
commit | b8f006ef72bb518397483d5b43111ddbcff250c8 (patch) | |
tree | 0bd0a7f2ae70606aca210c38596fa8f2f6e52194 /deps/v8/src/hydrogen-instructions.h | |
parent | e6e6e87463d4b1d3d8d5c129e4d008d35a1b5463 (diff) | |
download | node-new-b8f006ef72bb518397483d5b43111ddbcff250c8.tar.gz |
Upgrade V8 to 3.0.9
Diffstat (limited to 'deps/v8/src/hydrogen-instructions.h')
-rw-r--r-- | deps/v8/src/hydrogen-instructions.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/v8/src/hydrogen-instructions.h b/deps/v8/src/hydrogen-instructions.h index 4a23f2a327..eebec5a9e2 100644 --- a/deps/v8/src/hydrogen-instructions.h +++ b/deps/v8/src/hydrogen-instructions.h @@ -773,6 +773,10 @@ class HInstruction: public HValue { 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 @@ class HCheckMap: public HUnaryOperation { SetFlag(kDependsOnMaps); } + virtual bool IsCheckInstruction() const { return true; } + virtual Representation RequiredInputRepresentation(int index) const { return Representation::Tagged(); } @@ -1537,6 +1543,8 @@ class HCheckFunction: public HUnaryOperation { SetFlag(kUseGVN); } + virtual bool IsCheckInstruction() const { return true; } + virtual Representation RequiredInputRepresentation(int index) const { return Representation::Tagged(); } @@ -1573,6 +1581,8 @@ class HCheckInstanceType: public HUnaryOperation { SetFlag(kUseGVN); } + virtual bool IsCheckInstruction() const { return true; } + virtual Representation RequiredInputRepresentation(int index) const { return Representation::Tagged(); } @@ -1610,6 +1620,8 @@ class HCheckNonSmi: public HUnaryOperation { SetFlag(kUseGVN); } + virtual bool IsCheckInstruction() const { return true; } + virtual Representation RequiredInputRepresentation(int index) const { return Representation::Tagged(); } @@ -1632,6 +1644,8 @@ class HCheckPrototypeMaps: public HInstruction { SetFlag(kDependsOnMaps); } + virtual bool IsCheckInstruction() const { return true; } + #ifdef DEBUG virtual void Verify() const; #endif @@ -1668,6 +1682,8 @@ class HCheckSmi: public HUnaryOperation { SetFlag(kUseGVN); } + virtual bool IsCheckInstruction() const { return true; } + virtual Representation RequiredInputRepresentation(int index) const { return Representation::Tagged(); } @@ -1996,6 +2012,8 @@ class HBoundsCheck: public HBinaryOperation { SetFlag(kUseGVN); } + virtual bool IsCheckInstruction() const { return true; } + virtual Representation RequiredInputRepresentation(int index) const { return Representation::Integer32(); } |