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 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 | 1557 |
1558 DECLARE_CONCRETE_INSTRUCTION(UseConst) | 1558 DECLARE_CONCRETE_INSTRUCTION(UseConst) |
1559 | 1559 |
1560 private: | 1560 private: |
1561 explicit HUseConst(HValue* old_value) : HUnaryOperation(old_value) { } | 1561 explicit HUseConst(HValue* old_value) : HUnaryOperation(old_value) { } |
1562 }; | 1562 }; |
1563 | 1563 |
1564 | 1564 |
1565 class HForceRepresentation V8_FINAL : public HTemplateInstruction<1> { | 1565 class HForceRepresentation V8_FINAL : public HTemplateInstruction<1> { |
1566 public: | 1566 public: |
1567 DECLARE_INSTRUCTION_FACTORY_P2(HForceRepresentation, HValue*, Representation); | 1567 static HInstruction* New(Zone* zone, HValue* context, HValue* value, |
| 1568 Representation required_representation); |
1568 | 1569 |
1569 HValue* value() { return OperandAt(0); } | 1570 HValue* value() { return OperandAt(0); } |
1570 | 1571 |
1571 virtual HValue* EnsureAndPropagateNotMinusZero( | 1572 virtual HValue* EnsureAndPropagateNotMinusZero( |
1572 BitVector* visited) V8_OVERRIDE; | 1573 BitVector* visited) V8_OVERRIDE; |
1573 | 1574 |
1574 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 1575 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
1575 return representation(); // Same as the output representation. | 1576 return representation(); // Same as the output representation. |
1576 } | 1577 } |
1577 | 1578 |
(...skipping 5747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7325 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7326 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7326 }; | 7327 }; |
7327 | 7328 |
7328 | 7329 |
7329 #undef DECLARE_INSTRUCTION | 7330 #undef DECLARE_INSTRUCTION |
7330 #undef DECLARE_CONCRETE_INSTRUCTION | 7331 #undef DECLARE_CONCRETE_INSTRUCTION |
7331 | 7332 |
7332 } } // namespace v8::internal | 7333 } } // namespace v8::internal |
7333 | 7334 |
7334 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7335 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |