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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 LDivI(LOperand* left, LOperand* right, LOperand* temp) { | 749 LDivI(LOperand* left, LOperand* right, LOperand* temp) { |
750 inputs_[0] = left; | 750 inputs_[0] = left; |
751 inputs_[1] = right; | 751 inputs_[1] = right; |
752 temps_[0] = temp; | 752 temps_[0] = temp; |
753 } | 753 } |
754 | 754 |
755 LOperand* left() { return inputs_[0]; } | 755 LOperand* left() { return inputs_[0]; } |
756 LOperand* right() { return inputs_[1]; } | 756 LOperand* right() { return inputs_[1]; } |
757 LOperand* temp() { return temps_[0]; } | 757 LOperand* temp() { return temps_[0]; } |
758 | 758 |
759 bool is_flooring() { return hydrogen_value()->IsMathFloorOfDiv(); } | |
760 | |
761 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") | 759 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") |
762 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 760 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
763 }; | 761 }; |
764 | 762 |
765 | 763 |
766 class LFlooringDivByPowerOf2I V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 764 class LFlooringDivByPowerOf2I V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
767 public: | 765 public: |
768 LFlooringDivByPowerOf2I(LOperand* dividend, int32_t divisor) { | 766 LFlooringDivByPowerOf2I(LOperand* dividend, int32_t divisor) { |
769 inputs_[0] = dividend; | 767 inputs_[0] = dividend; |
770 divisor_ = divisor; | 768 divisor_ = divisor; |
(...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2913 | 2911 |
2914 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2912 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2915 }; | 2913 }; |
2916 | 2914 |
2917 #undef DECLARE_HYDROGEN_ACCESSOR | 2915 #undef DECLARE_HYDROGEN_ACCESSOR |
2918 #undef DECLARE_CONCRETE_INSTRUCTION | 2916 #undef DECLARE_CONCRETE_INSTRUCTION |
2919 | 2917 |
2920 } } // namespace v8::internal | 2918 } } // namespace v8::internal |
2921 | 2919 |
2922 #endif // V8_IA32_LITHIUM_IA32_H_ | 2920 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |