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 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 return Representation::Tagged(); | 1471 return Representation::Tagged(); |
1472 } | 1472 } |
1473 | 1473 |
1474 DECLARE_CONCRETE_INSTRUCTION(CompareMap) | 1474 DECLARE_CONCRETE_INSTRUCTION(CompareMap) |
1475 | 1475 |
1476 private: | 1476 private: |
1477 Handle<Map> map_; | 1477 Handle<Map> map_; |
1478 }; | 1478 }; |
1479 | 1479 |
1480 | 1480 |
1481 class HReturn: public HTemplateControlInstruction<0, 2> { | 1481 class HReturn: public HTemplateControlInstruction<0, 3> { |
1482 public: | 1482 public: |
1483 HReturn(HValue* value, HValue* context) { | 1483 HReturn(HValue* value, HValue* context, HValue* parameter_count) { |
1484 SetOperandAt(0, value); | 1484 SetOperandAt(0, value); |
1485 SetOperandAt(1, context); | 1485 SetOperandAt(1, context); |
| 1486 SetOperandAt(2, parameter_count); |
1486 } | 1487 } |
1487 | 1488 |
1488 virtual Representation RequiredInputRepresentation(int index) { | 1489 virtual Representation RequiredInputRepresentation(int index) { |
1489 return Representation::Tagged(); | 1490 return Representation::Tagged(); |
1490 } | 1491 } |
1491 | 1492 |
1492 virtual void PrintDataTo(StringStream* stream); | 1493 virtual void PrintDataTo(StringStream* stream); |
1493 | 1494 |
1494 HValue* value() { return OperandAt(0); } | 1495 HValue* value() { return OperandAt(0); } |
1495 HValue* context() { return OperandAt(1); } | 1496 HValue* context() { return OperandAt(1); } |
| 1497 HValue* parameter_count() { return OperandAt(2); } |
1496 | 1498 |
1497 DECLARE_CONCRETE_INSTRUCTION(Return) | 1499 DECLARE_CONCRETE_INSTRUCTION(Return) |
1498 }; | 1500 }; |
1499 | 1501 |
1500 | 1502 |
1501 class HAbnormalExit: public HTemplateControlInstruction<0, 0> { | 1503 class HAbnormalExit: public HTemplateControlInstruction<0, 0> { |
1502 public: | 1504 public: |
1503 virtual Representation RequiredInputRepresentation(int index) { | 1505 virtual Representation RequiredInputRepresentation(int index) { |
1504 return Representation::None(); | 1506 return Representation::None(); |
1505 } | 1507 } |
(...skipping 4659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6165 virtual bool IsDeletable() const { return true; } | 6167 virtual bool IsDeletable() const { return true; } |
6166 }; | 6168 }; |
6167 | 6169 |
6168 | 6170 |
6169 #undef DECLARE_INSTRUCTION | 6171 #undef DECLARE_INSTRUCTION |
6170 #undef DECLARE_CONCRETE_INSTRUCTION | 6172 #undef DECLARE_CONCRETE_INSTRUCTION |
6171 | 6173 |
6172 } } // namespace v8::internal | 6174 } } // namespace v8::internal |
6173 | 6175 |
6174 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6176 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |