| Index: src/hydrogen-instructions.h
|
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
|
| index 65fc4df4bd8ec35883577a8c4899332a1736dafe..6208943273420c8c7de2e45a100696eccea4e2c3 100644
|
| --- a/src/hydrogen-instructions.h
|
| +++ b/src/hydrogen-instructions.h
|
| @@ -120,8 +120,10 @@ class LChunkBuilder;
|
| V(IsConstructCallAndBranch) \
|
| V(IsNilAndBranch) \
|
| V(IsObjectAndBranch) \
|
| + V(IsStringAndBranch) \
|
| V(IsSmiAndBranch) \
|
| V(IsUndetectableAndBranch) \
|
| + V(CompareGenericAndBranch) \
|
| V(JSArrayLength) \
|
| V(LeaveInlined) \
|
| V(LoadContextSlot) \
|
| @@ -2702,6 +2704,18 @@ class HIsObjectAndBranch: public HUnaryControlInstruction {
|
| DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch)
|
| };
|
|
|
| +class HIsStringAndBranch: public HUnaryControlInstruction {
|
| + public:
|
| + explicit HIsStringAndBranch(HValue* value)
|
| + : HUnaryControlInstruction(value, NULL, NULL) { }
|
| +
|
| + virtual Representation RequiredInputRepresentation(int index) {
|
| + return Representation::Tagged();
|
| + }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch)
|
| +};
|
| +
|
|
|
| class HIsSmiAndBranch: public HUnaryControlInstruction {
|
| public:
|
| @@ -2732,6 +2746,42 @@ class HIsUndetectableAndBranch: public HUnaryControlInstruction {
|
| };
|
|
|
|
|
| +class HCompareGenericAndBranch: public HTemplateControlInstruction<2, 3> {
|
| + public:
|
| + HCompareGenericAndBranch(HValue* context,
|
| + HValue* left,
|
| + HValue* right,
|
| + Token::Value token)
|
| + : token_(token) {
|
| + ASSERT(Token::IsCompareOp(token));
|
| + SetOperandAt(0, context);
|
| + SetOperandAt(1, left);
|
| + SetOperandAt(2, right);
|
| + set_representation(Representation::Tagged());
|
| + }
|
| +
|
| + HValue* context() { return OperandAt(0); }
|
| + HValue* left() { return OperandAt(1); }
|
| + HValue* right() { return OperandAt(2); }
|
| + Token::Value token() const { return token_; }
|
| +
|
| + virtual void PrintDataTo(StringStream* stream);
|
| +
|
| + virtual Representation RequiredInputRepresentation(int index) {
|
| + return Representation::Tagged();
|
| + }
|
| +
|
| + Representation GetInputRepresentation() const {
|
| + return Representation::Tagged();
|
| + }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(CompareGenericAndBranch)
|
| +
|
| + private:
|
| + Token::Value token_;
|
| +};
|
| +
|
| +
|
| class HIsConstructCallAndBranch: public HTemplateControlInstruction<2, 0> {
|
| public:
|
| virtual Representation RequiredInputRepresentation(int index) {
|
|
|