Chromium Code Reviews| Index: src/hydrogen-instructions.h |
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
| index f1093a004c6c340131307d8fe18ed6baf868cef1..fdad77afd86522292374cd465f39413f9cf05809 100644 |
| --- a/src/hydrogen-instructions.h |
| +++ b/src/hydrogen-instructions.h |
| @@ -113,6 +113,7 @@ class LChunkBuilder; |
| V(IsNull) \ |
| V(IsObject) \ |
| V(IsSmi) \ |
| + V(IsConstructCall) \ |
| V(HasInstanceType) \ |
| V(HasCachedArrayIndex) \ |
| V(JSArrayLength) \ |
| @@ -2179,6 +2180,21 @@ class HIsSmi: public HUnaryPredicate { |
| }; |
| +class HIsConstructCall: public HInstruction { |
| + public: |
| + HIsConstructCall() { |
| + set_representation(Representation::Tagged()); |
| + SetFlag(kUseGVN); |
| + } |
| + |
| + virtual bool EmitAtUses() const { return uses()->length() <= 1; } |
| + |
| + DECLARE_CONCRETE_INSTRUCTION(IsConstructCall, "is_construct_call") |
| + protected: |
|
Mads Ager (chromium)
2011/02/08 07:09:44
Blank line before protected?
|
| + virtual bool DataEquals(HValue* other) const { return true; } |
| +}; |
| + |
| + |
| class HHasInstanceType: public HUnaryPredicate { |
| public: |
| HHasInstanceType(HValue* value, InstanceType type) |