Chromium Code Reviews| 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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1721 HValue* value() { return OperandAt(0); } | 1721 HValue* value() { return OperandAt(0); } |
| 1722 | 1722 |
| 1723 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 1723 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
| 1724 return representation(); // Same as the output representation. | 1724 return representation(); // Same as the output representation. |
| 1725 } | 1725 } |
| 1726 | 1726 |
| 1727 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1727 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1728 | 1728 |
| 1729 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation) | 1729 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation) |
| 1730 | 1730 |
| 1731 private: | |
|
Michael Starzinger
2014/04/25 08:35:10
Let's keep this constructor private and use HForce
Jarin
2014/04/25 11:05:07
Done.
| |
| 1732 HForceRepresentation(HValue* value, Representation required_representation) { | 1731 HForceRepresentation(HValue* value, Representation required_representation) { |
| 1733 SetOperandAt(0, value); | 1732 SetOperandAt(0, value); |
| 1734 set_representation(required_representation); | 1733 set_representation(required_representation); |
| 1735 } | 1734 } |
| 1736 }; | 1735 }; |
| 1737 | 1736 |
| 1738 | 1737 |
| 1739 class HChange V8_FINAL : public HUnaryOperation { | 1738 class HChange V8_FINAL : public HUnaryOperation { |
| 1740 public: | 1739 public: |
| 1741 HChange(HValue* value, | 1740 HChange(HValue* value, |
| (...skipping 5824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7566 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7565 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7567 }; | 7566 }; |
| 7568 | 7567 |
| 7569 | 7568 |
| 7570 #undef DECLARE_INSTRUCTION | 7569 #undef DECLARE_INSTRUCTION |
| 7571 #undef DECLARE_CONCRETE_INSTRUCTION | 7570 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7572 | 7571 |
| 7573 } } // namespace v8::internal | 7572 } } // namespace v8::internal |
| 7574 | 7573 |
| 7575 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7574 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |