| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1687 set_representation(Representation::Tagged()); | 1687 set_representation(Representation::Tagged()); |
| 1688 SetFlag(kUseGVN); | 1688 SetFlag(kUseGVN); |
| 1689 SetFlag(kDependsOnArrayLengths); | 1689 SetFlag(kDependsOnArrayLengths); |
| 1690 SetFlag(kDependsOnMaps); | 1690 SetFlag(kDependsOnMaps); |
| 1691 } | 1691 } |
| 1692 | 1692 |
| 1693 virtual Representation RequiredInputRepresentation(int index) const { | 1693 virtual Representation RequiredInputRepresentation(int index) const { |
| 1694 return Representation::Tagged(); | 1694 return Representation::Tagged(); |
| 1695 } | 1695 } |
| 1696 | 1696 |
| 1697 virtual void PrintDataTo(StringStream* stream); |
| 1698 |
| 1697 HValue* value() { return OperandAt(0); } | 1699 HValue* value() { return OperandAt(0); } |
| 1700 HValue* typecheck() { return OperandAt(1); } |
| 1698 | 1701 |
| 1699 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength) | 1702 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength) |
| 1700 | 1703 |
| 1701 protected: | 1704 protected: |
| 1702 virtual bool DataEquals(HValue* other) { return true; } | 1705 virtual bool DataEquals(HValue* other) { return true; } |
| 1703 }; | 1706 }; |
| 1704 | 1707 |
| 1705 | 1708 |
| 1706 class HFixedArrayBaseLength: public HUnaryOperation { | 1709 class HFixedArrayBaseLength: public HUnaryOperation { |
| 1707 public: | 1710 public: |
| (...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4189 | 4192 |
| 4190 DECLARE_CONCRETE_INSTRUCTION(In) | 4193 DECLARE_CONCRETE_INSTRUCTION(In) |
| 4191 }; | 4194 }; |
| 4192 | 4195 |
| 4193 #undef DECLARE_INSTRUCTION | 4196 #undef DECLARE_INSTRUCTION |
| 4194 #undef DECLARE_CONCRETE_INSTRUCTION | 4197 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4195 | 4198 |
| 4196 } } // namespace v8::internal | 4199 } } // namespace v8::internal |
| 4197 | 4200 |
| 4198 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4201 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |