| 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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 inputs_[0] = value; | 723 inputs_[0] = value; |
| 724 } | 724 } |
| 725 | 725 |
| 726 LOperand* value() { return inputs_[0]; } | 726 LOperand* value() { return inputs_[0]; } |
| 727 | 727 |
| 728 DECLARE_CONCRETE_INSTRUCTION(MathFloor, "math-floor") | 728 DECLARE_CONCRETE_INSTRUCTION(MathFloor, "math-floor") |
| 729 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) | 729 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) |
| 730 }; | 730 }; |
| 731 | 731 |
| 732 | 732 |
| 733 class LMathRound V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 733 class LMathRound V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
| 734 public: | 734 public: |
| 735 explicit LMathRound(LOperand* value) { | 735 explicit LMathRound(LOperand* value, LOperand* temp) { |
| 736 inputs_[0] = value; | 736 inputs_[0] = value; |
| 737 temps_[0] = temp; |
| 737 } | 738 } |
| 738 | 739 |
| 739 LOperand* value() { return inputs_[0]; } | 740 LOperand* value() { return inputs_[0]; } |
| 741 LOperand* temp() { return temps_[0]; } |
| 740 | 742 |
| 741 DECLARE_CONCRETE_INSTRUCTION(MathRound, "math-round") | 743 DECLARE_CONCRETE_INSTRUCTION(MathRound, "math-round") |
| 742 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) | 744 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) |
| 743 }; | 745 }; |
| 744 | 746 |
| 745 | 747 |
| 746 class LMathAbs V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 748 class LMathAbs V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 747 public: | 749 public: |
| 748 explicit LMathAbs(LOperand* context, LOperand* value) { | 750 explicit LMathAbs(LOperand* context, LOperand* value) { |
| 749 inputs_[1] = context; | 751 inputs_[1] = context; |
| (...skipping 2093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2843 | 2845 |
| 2844 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2846 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2845 }; | 2847 }; |
| 2846 | 2848 |
| 2847 #undef DECLARE_HYDROGEN_ACCESSOR | 2849 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2848 #undef DECLARE_CONCRETE_INSTRUCTION | 2850 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2849 | 2851 |
| 2850 } } // namespace v8::int | 2852 } } // namespace v8::int |
| 2851 | 2853 |
| 2852 #endif // V8_X64_LITHIUM_X64_H_ | 2854 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |