| 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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 | 1668 |
| 1669 DECLARE_CONCRETE_INSTRUCTION(UseConst) | 1669 DECLARE_CONCRETE_INSTRUCTION(UseConst) |
| 1670 | 1670 |
| 1671 private: | 1671 private: |
| 1672 explicit HUseConst(HValue* old_value) : HUnaryOperation(old_value) { } | 1672 explicit HUseConst(HValue* old_value) : HUnaryOperation(old_value) { } |
| 1673 }; | 1673 }; |
| 1674 | 1674 |
| 1675 | 1675 |
| 1676 class HForceRepresentation V8_FINAL : public HTemplateInstruction<1> { | 1676 class HForceRepresentation V8_FINAL : public HTemplateInstruction<1> { |
| 1677 public: | 1677 public: |
| 1678 DECLARE_INSTRUCTION_FACTORY_P2(HForceRepresentation, HValue*, Representation); | 1678 static HInstruction* New(Zone* zone, HValue* context, HValue* value, |
| 1679 Representation required_representation); |
| 1679 | 1680 |
| 1680 HValue* value() { return OperandAt(0); } | 1681 HValue* value() { return OperandAt(0); } |
| 1681 | 1682 |
| 1682 virtual HValue* EnsureAndPropagateNotMinusZero( | 1683 virtual HValue* EnsureAndPropagateNotMinusZero( |
| 1683 BitVector* visited) V8_OVERRIDE; | 1684 BitVector* visited) V8_OVERRIDE; |
| 1684 | 1685 |
| 1685 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 1686 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
| 1686 return representation(); // Same as the output representation. | 1687 return representation(); // Same as the output representation. |
| 1687 } | 1688 } |
| 1688 | 1689 |
| (...skipping 5764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7453 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7454 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7454 }; | 7455 }; |
| 7455 | 7456 |
| 7456 | 7457 |
| 7457 #undef DECLARE_INSTRUCTION | 7458 #undef DECLARE_INSTRUCTION |
| 7458 #undef DECLARE_CONCRETE_INSTRUCTION | 7459 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7459 | 7460 |
| 7460 } } // namespace v8::internal | 7461 } } // namespace v8::internal |
| 7461 | 7462 |
| 7462 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7463 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |