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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 | 681 |
682 LOperand* left() { return inputs_[0]; } | 682 LOperand* left() { return inputs_[0]; } |
683 LOperand* right() { return inputs_[1]; } | 683 LOperand* right() { return inputs_[1]; } |
684 LOperand* temp() { return temps_[0]; } | 684 LOperand* temp() { return temps_[0]; } |
685 | 685 |
686 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div") | 686 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div") |
687 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) | 687 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) |
688 }; | 688 }; |
689 | 689 |
690 | 690 |
691 class LMulI V8_FINAL : public LTemplateInstruction<1, 2, 1> { | 691 class LMulI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
692 public: | 692 public: |
693 LMulI(LOperand* left, LOperand* right, LOperand* temp) { | 693 LMulI(LOperand* left, LOperand* right) { |
694 inputs_[0] = left; | 694 inputs_[0] = left; |
695 inputs_[1] = right; | 695 inputs_[1] = right; |
696 temps_[0] = temp; | |
697 } | 696 } |
698 | 697 |
699 LOperand* left() { return inputs_[0]; } | 698 LOperand* left() { return inputs_[0]; } |
700 LOperand* right() { return inputs_[1]; } | 699 LOperand* right() { return inputs_[1]; } |
701 LOperand* temp() { return temps_[0]; } | |
702 | 700 |
703 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") | 701 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") |
704 DECLARE_HYDROGEN_ACCESSOR(Mul) | 702 DECLARE_HYDROGEN_ACCESSOR(Mul) |
705 }; | 703 }; |
706 | 704 |
707 | 705 |
708 // Instruction for computing multiplier * multiplicand + addend. | 706 // Instruction for computing multiplier * multiplicand + addend. |
709 class LMultiplyAddD V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 707 class LMultiplyAddD V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
710 public: | 708 public: |
711 LMultiplyAddD(LOperand* addend, LOperand* multiplier, | 709 LMultiplyAddD(LOperand* addend, LOperand* multiplier, |
(...skipping 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2769 | 2767 |
2770 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2768 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2771 }; | 2769 }; |
2772 | 2770 |
2773 #undef DECLARE_HYDROGEN_ACCESSOR | 2771 #undef DECLARE_HYDROGEN_ACCESSOR |
2774 #undef DECLARE_CONCRETE_INSTRUCTION | 2772 #undef DECLARE_CONCRETE_INSTRUCTION |
2775 | 2773 |
2776 } } // namespace v8::internal | 2774 } } // namespace v8::internal |
2777 | 2775 |
2778 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2776 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |