| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 V(HasCachedArrayIndexAndBranch) \ | 121 V(HasCachedArrayIndexAndBranch) \ |
| 122 V(HasInstanceTypeAndBranch) \ | 122 V(HasInstanceTypeAndBranch) \ |
| 123 V(InductionVariableAnnotation) \ | 123 V(InductionVariableAnnotation) \ |
| 124 V(In) \ | 124 V(In) \ |
| 125 V(InnerAllocatedObject) \ | 125 V(InnerAllocatedObject) \ |
| 126 V(InstanceOf) \ | 126 V(InstanceOf) \ |
| 127 V(InstanceOfKnownGlobal) \ | 127 V(InstanceOfKnownGlobal) \ |
| 128 V(InstanceSize) \ | 128 V(InstanceSize) \ |
| 129 V(InvokeFunction) \ | 129 V(InvokeFunction) \ |
| 130 V(IsConstructCallAndBranch) \ | 130 V(IsConstructCallAndBranch) \ |
| 131 V(IsNilAndBranch) \ | |
| 132 V(IsObjectAndBranch) \ | 131 V(IsObjectAndBranch) \ |
| 133 V(IsStringAndBranch) \ | 132 V(IsStringAndBranch) \ |
| 134 V(IsSmiAndBranch) \ | 133 V(IsSmiAndBranch) \ |
| 135 V(IsUndetectableAndBranch) \ | 134 V(IsUndetectableAndBranch) \ |
| 136 V(LeaveInlined) \ | 135 V(LeaveInlined) \ |
| 137 V(LoadContextSlot) \ | 136 V(LoadContextSlot) \ |
| 138 V(LoadElements) \ | 137 V(LoadElements) \ |
| 139 V(LoadExternalArrayPointer) \ | 138 V(LoadExternalArrayPointer) \ |
| 140 V(LoadFunctionPrototype) \ | 139 V(LoadFunctionPrototype) \ |
| 141 V(LoadGlobalCell) \ | 140 V(LoadGlobalCell) \ |
| (...skipping 3783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3925 | 3924 |
| 3926 HValue* left() { return OperandAt(0); } | 3925 HValue* left() { return OperandAt(0); } |
| 3927 HValue* right() { return OperandAt(1); } | 3926 HValue* right() { return OperandAt(1); } |
| 3928 | 3927 |
| 3929 virtual void PrintDataTo(StringStream* stream); | 3928 virtual void PrintDataTo(StringStream* stream); |
| 3930 | 3929 |
| 3931 virtual Representation RequiredInputRepresentation(int index) { | 3930 virtual Representation RequiredInputRepresentation(int index) { |
| 3932 return Representation::Tagged(); | 3931 return Representation::Tagged(); |
| 3933 } | 3932 } |
| 3934 | 3933 |
| 3934 virtual Representation observed_input_representation(int index) { |
| 3935 return Representation::Tagged(); |
| 3936 } |
| 3937 |
| 3935 DECLARE_CONCRETE_INSTRUCTION(CompareObjectEqAndBranch) | 3938 DECLARE_CONCRETE_INSTRUCTION(CompareObjectEqAndBranch) |
| 3936 }; | 3939 }; |
| 3937 | 3940 |
| 3938 | 3941 |
| 3939 class HCompareConstantEqAndBranch: public HUnaryControlInstruction { | 3942 class HCompareConstantEqAndBranch: public HUnaryControlInstruction { |
| 3940 public: | 3943 public: |
| 3941 HCompareConstantEqAndBranch(HValue* left, int right, Token::Value op) | 3944 HCompareConstantEqAndBranch(HValue* left, int right, Token::Value op) |
| 3942 : HUnaryControlInstruction(left, NULL, NULL), op_(op), right_(right) { | 3945 : HUnaryControlInstruction(left, NULL, NULL), op_(op), right_(right) { |
| 3943 ASSERT(op == Token::EQ_STRICT); | 3946 ASSERT(op == Token::EQ_STRICT); |
| 3944 } | 3947 } |
| 3945 | 3948 |
| 3946 Token::Value op() const { return op_; } | 3949 Token::Value op() const { return op_; } |
| 3947 HValue* left() { return value(); } | 3950 HValue* left() { return value(); } |
| 3948 int right() const { return right_; } | 3951 int right() const { return right_; } |
| 3949 | 3952 |
| 3950 virtual Representation RequiredInputRepresentation(int index) { | 3953 virtual Representation RequiredInputRepresentation(int index) { |
| 3951 return Representation::Integer32(); | 3954 return Representation::Integer32(); |
| 3952 } | 3955 } |
| 3953 | 3956 |
| 3954 DECLARE_CONCRETE_INSTRUCTION(CompareConstantEqAndBranch); | 3957 DECLARE_CONCRETE_INSTRUCTION(CompareConstantEqAndBranch); |
| 3955 | 3958 |
| 3956 private: | 3959 private: |
| 3957 const Token::Value op_; | 3960 const Token::Value op_; |
| 3958 const int right_; | 3961 const int right_; |
| 3959 }; | 3962 }; |
| 3960 | 3963 |
| 3961 | 3964 |
| 3962 class HIsNilAndBranch: public HUnaryControlInstruction { | |
| 3963 public: | |
| 3964 HIsNilAndBranch(HValue* value, EqualityKind kind, NilValue nil) | |
| 3965 : HUnaryControlInstruction(value, NULL, NULL), kind_(kind), nil_(nil) { } | |
| 3966 | |
| 3967 EqualityKind kind() const { return kind_; } | |
| 3968 NilValue nil() const { return nil_; } | |
| 3969 | |
| 3970 virtual void PrintDataTo(StringStream* stream); | |
| 3971 | |
| 3972 virtual Representation RequiredInputRepresentation(int index) { | |
| 3973 return Representation::Tagged(); | |
| 3974 } | |
| 3975 virtual Representation observed_input_representation(int index) { | |
| 3976 return Representation::Tagged(); | |
| 3977 } | |
| 3978 | |
| 3979 DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch) | |
| 3980 | |
| 3981 private: | |
| 3982 EqualityKind kind_; | |
| 3983 NilValue nil_; | |
| 3984 }; | |
| 3985 | |
| 3986 | |
| 3987 class HIsObjectAndBranch: public HUnaryControlInstruction { | 3965 class HIsObjectAndBranch: public HUnaryControlInstruction { |
| 3988 public: | 3966 public: |
| 3989 explicit HIsObjectAndBranch(HValue* value) | 3967 explicit HIsObjectAndBranch(HValue* value) |
| 3990 : HUnaryControlInstruction(value, NULL, NULL) { } | 3968 : HUnaryControlInstruction(value, NULL, NULL) { } |
| 3991 | 3969 |
| 3992 virtual Representation RequiredInputRepresentation(int index) { | 3970 virtual Representation RequiredInputRepresentation(int index) { |
| 3993 return Representation::Tagged(); | 3971 return Representation::Tagged(); |
| 3994 } | 3972 } |
| 3995 | 3973 |
| 3996 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch) | 3974 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch) |
| (...skipping 2492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6489 virtual bool IsDeletable() const { return true; } | 6467 virtual bool IsDeletable() const { return true; } |
| 6490 }; | 6468 }; |
| 6491 | 6469 |
| 6492 | 6470 |
| 6493 #undef DECLARE_INSTRUCTION | 6471 #undef DECLARE_INSTRUCTION |
| 6494 #undef DECLARE_CONCRETE_INSTRUCTION | 6472 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6495 | 6473 |
| 6496 } } // namespace v8::internal | 6474 } } // namespace v8::internal |
| 6497 | 6475 |
| 6498 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6476 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |