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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 inputs_[0] = value; | 828 inputs_[0] = value; |
829 } | 829 } |
830 | 830 |
831 LOperand* value() { return inputs_[0]; } | 831 LOperand* value() { return inputs_[0]; } |
832 | 832 |
833 DECLARE_CONCRETE_INSTRUCTION(MathFloor, "math-floor") | 833 DECLARE_CONCRETE_INSTRUCTION(MathFloor, "math-floor") |
834 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) | 834 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) |
835 }; | 835 }; |
836 | 836 |
837 | 837 |
838 class LMathRound V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 838 class LMathRound V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
839 public: | 839 public: |
840 explicit LMathRound(LOperand* value) { | 840 explicit LMathRound(LOperand* value, LOperand* temp) { |
841 inputs_[0] = value; | 841 inputs_[0] = value; |
| 842 temps_[0] = temp; |
842 } | 843 } |
843 | 844 |
844 LOperand* value() { return inputs_[0]; } | 845 LOperand* value() { return inputs_[0]; } |
| 846 LOperand* temp() { return temps_[0]; } |
845 | 847 |
846 DECLARE_CONCRETE_INSTRUCTION(MathRound, "math-round") | 848 DECLARE_CONCRETE_INSTRUCTION(MathRound, "math-round") |
847 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) | 849 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) |
848 }; | 850 }; |
849 | 851 |
850 | 852 |
851 class LMathAbs V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 853 class LMathAbs V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
852 public: | 854 public: |
853 explicit LMathAbs(LOperand* context, LOperand* value) { | 855 explicit LMathAbs(LOperand* context, LOperand* value) { |
854 inputs_[1] = context; | 856 inputs_[1] = context; |
(...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2787 | 2789 |
2788 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2790 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2789 }; | 2791 }; |
2790 | 2792 |
2791 #undef DECLARE_HYDROGEN_ACCESSOR | 2793 #undef DECLARE_HYDROGEN_ACCESSOR |
2792 #undef DECLARE_CONCRETE_INSTRUCTION | 2794 #undef DECLARE_CONCRETE_INSTRUCTION |
2793 | 2795 |
2794 } } // namespace v8::int | 2796 } } // namespace v8::int |
2795 | 2797 |
2796 #endif // V8_X64_LITHIUM_X64_H_ | 2798 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |