| 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 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 ASSERT(has_constant_parameter_count()); | 1451 ASSERT(has_constant_parameter_count()); |
| 1452 return LConstantOperand::cast(parameter_count()); | 1452 return LConstantOperand::cast(parameter_count()); |
| 1453 } | 1453 } |
| 1454 LOperand* parameter_count() { return inputs_[1]; } | 1454 LOperand* parameter_count() { return inputs_[1]; } |
| 1455 | 1455 |
| 1456 DECLARE_CONCRETE_INSTRUCTION(Return, "return") | 1456 DECLARE_CONCRETE_INSTRUCTION(Return, "return") |
| 1457 DECLARE_HYDROGEN_ACCESSOR(Return) | 1457 DECLARE_HYDROGEN_ACCESSOR(Return) |
| 1458 }; | 1458 }; |
| 1459 | 1459 |
| 1460 | 1460 |
| 1461 class LLoadNamedField: public LTemplateInstruction<1, 1, 1> { | 1461 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { |
| 1462 public: | 1462 public: |
| 1463 explicit LLoadNamedField(LOperand* object, LOperand* temp) { | 1463 explicit LLoadNamedField(LOperand* object) { |
| 1464 inputs_[0] = object; | 1464 inputs_[0] = object; |
| 1465 temps_[0] = temp; | |
| 1466 } | 1465 } |
| 1467 | 1466 |
| 1468 LOperand* object() { return inputs_[0]; } | 1467 LOperand* object() { return inputs_[0]; } |
| 1469 LOperand* temp() { return temps_[0]; } | |
| 1470 | 1468 |
| 1471 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") | 1469 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") |
| 1472 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) | 1470 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) |
| 1473 }; | 1471 }; |
| 1474 | 1472 |
| 1475 | 1473 |
| 1476 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> { | 1474 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> { |
| 1477 public: | 1475 public: |
| 1478 explicit LLoadNamedFieldPolymorphic(LOperand* object) { | 1476 explicit LLoadNamedFieldPolymorphic(LOperand* object) { |
| 1479 inputs_[0] = object; | 1477 inputs_[0] = object; |
| (...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2741 | 2739 |
| 2742 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2740 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2743 }; | 2741 }; |
| 2744 | 2742 |
| 2745 #undef DECLARE_HYDROGEN_ACCESSOR | 2743 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2746 #undef DECLARE_CONCRETE_INSTRUCTION | 2744 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2747 | 2745 |
| 2748 } } // namespace v8::int | 2746 } } // namespace v8::int |
| 2749 | 2747 |
| 2750 #endif // V8_X64_LITHIUM_X64_H_ | 2748 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |