| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
| 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/v8.h" | 10 #include "src/v8.h" |
| (...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1634 }; | 1634 }; |
| 1635 | 1635 |
| 1636 | 1636 |
| 1637 class HForceRepresentation FINAL : public HTemplateInstruction<1> { | 1637 class HForceRepresentation FINAL : public HTemplateInstruction<1> { |
| 1638 public: | 1638 public: |
| 1639 static HInstruction* New(Zone* zone, HValue* context, HValue* value, | 1639 static HInstruction* New(Zone* zone, HValue* context, HValue* value, |
| 1640 Representation required_representation); | 1640 Representation required_representation); |
| 1641 | 1641 |
| 1642 HValue* value() const { return OperandAt(0); } | 1642 HValue* value() const { return OperandAt(0); } |
| 1643 | 1643 |
| 1644 Representation observed_input_representation(int index) OVERRIDE { |
| 1645 // We haven't actually *observed* this, but it's closer to the truth |
| 1646 // than 'None'. |
| 1647 return representation(); // Same as the output representation. |
| 1648 } |
| 1644 Representation RequiredInputRepresentation(int index) OVERRIDE { | 1649 Representation RequiredInputRepresentation(int index) OVERRIDE { |
| 1645 return representation(); // Same as the output representation. | 1650 return representation(); // Same as the output representation. |
| 1646 } | 1651 } |
| 1647 | 1652 |
| 1648 std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT | 1653 std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT |
| 1649 | 1654 |
| 1650 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation) | 1655 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation) |
| 1651 | 1656 |
| 1652 private: | 1657 private: |
| 1653 HForceRepresentation(HValue* value, Representation required_representation) { | 1658 HForceRepresentation(HValue* value, Representation required_representation) { |
| (...skipping 6366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8020 }; | 8025 }; |
| 8021 | 8026 |
| 8022 | 8027 |
| 8023 | 8028 |
| 8024 #undef DECLARE_INSTRUCTION | 8029 #undef DECLARE_INSTRUCTION |
| 8025 #undef DECLARE_CONCRETE_INSTRUCTION | 8030 #undef DECLARE_CONCRETE_INSTRUCTION |
| 8026 | 8031 |
| 8027 } } // namespace v8::internal | 8032 } } // namespace v8::internal |
| 8028 | 8033 |
| 8029 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 8034 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |