| 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 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 1578 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 1579 }; | 1579 }; |
| 1580 | 1580 |
| 1581 | 1581 |
| 1582 class HReturn V8_FINAL : public HTemplateControlInstruction<0, 3> { | 1582 class HReturn V8_FINAL : public HTemplateControlInstruction<0, 3> { |
| 1583 public: | 1583 public: |
| 1584 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HReturn, HValue*, HValue*); | 1584 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HReturn, HValue*, HValue*); |
| 1585 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HReturn, HValue*); | 1585 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HReturn, HValue*); |
| 1586 | 1586 |
| 1587 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 1587 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
| 1588 // TODO(titzer): require an Int32 input for faster returns. |
| 1589 if (index == 2) return Representation::Smi(); |
| 1588 return Representation::Tagged(); | 1590 return Representation::Tagged(); |
| 1589 } | 1591 } |
| 1590 | 1592 |
| 1591 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1593 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1592 | 1594 |
| 1593 HValue* value() { return OperandAt(0); } | 1595 HValue* value() { return OperandAt(0); } |
| 1594 HValue* context() { return OperandAt(1); } | 1596 HValue* context() { return OperandAt(1); } |
| 1595 HValue* parameter_count() { return OperandAt(2); } | 1597 HValue* parameter_count() { return OperandAt(2); } |
| 1596 | 1598 |
| 1597 DECLARE_CONCRETE_INSTRUCTION(Return) | 1599 DECLARE_CONCRETE_INSTRUCTION(Return) |
| (...skipping 5888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7486 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7488 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7487 }; | 7489 }; |
| 7488 | 7490 |
| 7489 | 7491 |
| 7490 #undef DECLARE_INSTRUCTION | 7492 #undef DECLARE_INSTRUCTION |
| 7491 #undef DECLARE_CONCRETE_INSTRUCTION | 7493 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7492 | 7494 |
| 7493 } } // namespace v8::internal | 7495 } } // namespace v8::internal |
| 7494 | 7496 |
| 7495 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7497 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |