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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 | 670 |
671 LOperand* left() { return inputs_[0]; } | 671 LOperand* left() { return inputs_[0]; } |
672 LOperand* right() { return inputs_[1]; } | 672 LOperand* right() { return inputs_[1]; } |
673 LOperand* temp() { return temps_[0]; } | 673 LOperand* temp() { return temps_[0]; } |
674 | 674 |
675 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div") | 675 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div") |
676 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) | 676 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) |
677 }; | 677 }; |
678 | 678 |
679 | 679 |
680 class LMulI V8_FINAL : public LTemplateInstruction<1, 2, 1> { | 680 class LMulI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
681 public: | 681 public: |
682 LMulI(LOperand* left, LOperand* right, LOperand* temp) { | 682 LMulI(LOperand* left, LOperand* right) { |
683 inputs_[0] = left; | 683 inputs_[0] = left; |
684 inputs_[1] = right; | 684 inputs_[1] = right; |
685 temps_[0] = temp; | |
686 } | 685 } |
687 | 686 |
688 LOperand* left() { return inputs_[0]; } | 687 LOperand* left() { return inputs_[0]; } |
689 LOperand* right() { return inputs_[1]; } | 688 LOperand* right() { return inputs_[1]; } |
690 LOperand* temp() { return temps_[0]; } | |
691 | 689 |
692 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") | 690 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") |
693 DECLARE_HYDROGEN_ACCESSOR(Mul) | 691 DECLARE_HYDROGEN_ACCESSOR(Mul) |
694 }; | 692 }; |
695 | 693 |
696 | 694 |
697 // Instruction for computing multiplier * multiplicand + addend. | 695 // Instruction for computing multiplier * multiplicand + addend. |
698 class LMultiplyAddD V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 696 class LMultiplyAddD V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
699 public: | 697 public: |
700 LMultiplyAddD(LOperand* addend, LOperand* multiplier, | 698 LMultiplyAddD(LOperand* addend, LOperand* multiplier, |
(...skipping 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2787 | 2785 |
2788 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2786 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2789 }; | 2787 }; |
2790 | 2788 |
2791 #undef DECLARE_HYDROGEN_ACCESSOR | 2789 #undef DECLARE_HYDROGEN_ACCESSOR |
2792 #undef DECLARE_CONCRETE_INSTRUCTION | 2790 #undef DECLARE_CONCRETE_INSTRUCTION |
2793 | 2791 |
2794 } } // namespace v8::internal | 2792 } } // namespace v8::internal |
2795 | 2793 |
2796 #endif // V8_ARM_LITHIUM_ARM_H_ | 2794 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |