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 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1569 BitVector* visited) V8_OVERRIDE; | 1569 BitVector* visited) V8_OVERRIDE; |
1570 | 1570 |
1571 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 1571 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
1572 return representation(); // Same as the output representation. | 1572 return representation(); // Same as the output representation. |
1573 } | 1573 } |
1574 | 1574 |
1575 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1575 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1576 | 1576 |
1577 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation) | 1577 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation) |
1578 | 1578 |
1579 protected: | |
1580 virtual int RedefinedOperandIndex() { return 0; } | |
Toon Verwaest
2013/11/11 13:59:28
Why is this needed? HForceRepresentation is explic
mvstanton
2013/11/13 14:12:52
It's done so we can make optimizations based on se
| |
1581 | |
1579 private: | 1582 private: |
1580 HForceRepresentation(HValue* value, Representation required_representation) { | 1583 HForceRepresentation(HValue* value, Representation required_representation) { |
1581 SetOperandAt(0, value); | 1584 SetOperandAt(0, value); |
1582 set_representation(required_representation); | 1585 set_representation(required_representation); |
1583 } | 1586 } |
1584 }; | 1587 }; |
1585 | 1588 |
1586 | 1589 |
1587 class HChange V8_FINAL : public HUnaryOperation { | 1590 class HChange V8_FINAL : public HUnaryOperation { |
1588 public: | 1591 public: |
(...skipping 5601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7190 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7193 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7191 }; | 7194 }; |
7192 | 7195 |
7193 | 7196 |
7194 #undef DECLARE_INSTRUCTION | 7197 #undef DECLARE_INSTRUCTION |
7195 #undef DECLARE_CONCRETE_INSTRUCTION | 7198 #undef DECLARE_CONCRETE_INSTRUCTION |
7196 | 7199 |
7197 } } // namespace v8::internal | 7200 } } // namespace v8::internal |
7198 | 7201 |
7199 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7202 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |