| 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 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 1465 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 1466 }; | 1466 }; |
| 1467 | 1467 |
| 1468 | 1468 |
| 1469 class HReturn V8_FINAL : public HTemplateControlInstruction<0, 3> { | 1469 class HReturn V8_FINAL : public HTemplateControlInstruction<0, 3> { |
| 1470 public: | 1470 public: |
| 1471 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HReturn, HValue*, HValue*); | 1471 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HReturn, HValue*, HValue*); |
| 1472 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HReturn, HValue*); | 1472 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HReturn, HValue*); |
| 1473 | 1473 |
| 1474 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 1474 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
| 1475 // TODO(titzer): require an Int32 input for faster returns. |
| 1476 if (index == 2) return Representation::Smi(); |
| 1475 return Representation::Tagged(); | 1477 return Representation::Tagged(); |
| 1476 } | 1478 } |
| 1477 | 1479 |
| 1478 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1480 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1479 | 1481 |
| 1480 HValue* value() { return OperandAt(0); } | 1482 HValue* value() { return OperandAt(0); } |
| 1481 HValue* context() { return OperandAt(1); } | 1483 HValue* context() { return OperandAt(1); } |
| 1482 HValue* parameter_count() { return OperandAt(2); } | 1484 HValue* parameter_count() { return OperandAt(2); } |
| 1483 | 1485 |
| 1484 DECLARE_CONCRETE_INSTRUCTION(Return) | 1486 DECLARE_CONCRETE_INSTRUCTION(Return) |
| (...skipping 5716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7201 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7203 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7202 }; | 7204 }; |
| 7203 | 7205 |
| 7204 | 7206 |
| 7205 #undef DECLARE_INSTRUCTION | 7207 #undef DECLARE_INSTRUCTION |
| 7206 #undef DECLARE_CONCRETE_INSTRUCTION | 7208 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7207 | 7209 |
| 7208 } } // namespace v8::internal | 7210 } } // namespace v8::internal |
| 7209 | 7211 |
| 7210 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7212 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |