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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 LDivI(LOperand* left, LOperand* right, LOperand* temp) { | 718 LDivI(LOperand* left, LOperand* right, LOperand* temp) { |
719 inputs_[0] = left; | 719 inputs_[0] = left; |
720 inputs_[1] = right; | 720 inputs_[1] = right; |
721 temps_[0] = temp; | 721 temps_[0] = temp; |
722 } | 722 } |
723 | 723 |
724 LOperand* left() { return inputs_[0]; } | 724 LOperand* left() { return inputs_[0]; } |
725 LOperand* right() { return inputs_[1]; } | 725 LOperand* right() { return inputs_[1]; } |
726 LOperand* temp() { return temps_[0]; } | 726 LOperand* temp() { return temps_[0]; } |
727 | 727 |
728 bool is_flooring() { return hydrogen_value()->IsMathFloorOfDiv(); } | |
729 | |
730 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") | 728 DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") |
731 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) | 729 DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
732 }; | 730 }; |
733 | 731 |
734 | 732 |
735 class LFlooringDivByPowerOf2I V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 733 class LFlooringDivByPowerOf2I V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
736 public: | 734 public: |
737 LFlooringDivByPowerOf2I(LOperand* dividend, int32_t divisor) { | 735 LFlooringDivByPowerOf2I(LOperand* dividend, int32_t divisor) { |
738 inputs_[0] = dividend; | 736 inputs_[0] = dividend; |
739 divisor_ = divisor; | 737 divisor_ = divisor; |
(...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2873 | 2871 |
2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2872 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2875 }; | 2873 }; |
2876 | 2874 |
2877 #undef DECLARE_HYDROGEN_ACCESSOR | 2875 #undef DECLARE_HYDROGEN_ACCESSOR |
2878 #undef DECLARE_CONCRETE_INSTRUCTION | 2876 #undef DECLARE_CONCRETE_INSTRUCTION |
2879 | 2877 |
2880 } } // namespace v8::internal | 2878 } } // namespace v8::internal |
2881 | 2879 |
2882 #endif // V8_ARM_LITHIUM_ARM_H_ | 2880 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |