| 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 3823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3834 public: | 3834 public: |
| 3835 static HMathFloorOfDiv* New(Zone* zone, | 3835 static HMathFloorOfDiv* New(Zone* zone, |
| 3836 HValue* context, | 3836 HValue* context, |
| 3837 HValue* left, | 3837 HValue* left, |
| 3838 HValue* right) { | 3838 HValue* right) { |
| 3839 return new(zone) HMathFloorOfDiv(context, left, right); | 3839 return new(zone) HMathFloorOfDiv(context, left, right); |
| 3840 } | 3840 } |
| 3841 | 3841 |
| 3842 virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited); | 3842 virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited); |
| 3843 | 3843 |
| 3844 virtual Representation RequiredInputRepresentation(int index) { | |
| 3845 return Representation::Integer32(); | |
| 3846 } | |
| 3847 | |
| 3848 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) | 3844 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) |
| 3849 | 3845 |
| 3850 protected: | 3846 protected: |
| 3851 virtual bool DataEquals(HValue* other) { return true; } | 3847 virtual bool DataEquals(HValue* other) { return true; } |
| 3852 | 3848 |
| 3853 private: | 3849 private: |
| 3854 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right) | 3850 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right) |
| 3855 : HBinaryOperation(context, left, right) { | 3851 : HBinaryOperation(context, left, right) { |
| 3856 set_representation(Representation::Integer32()); | 3852 set_representation(Representation::Integer32()); |
| 3857 SetFlag(kUseGVN); | 3853 SetFlag(kUseGVN); |
| (...skipping 2929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6787 virtual bool IsDeletable() const { return true; } | 6783 virtual bool IsDeletable() const { return true; } |
| 6788 }; | 6784 }; |
| 6789 | 6785 |
| 6790 | 6786 |
| 6791 #undef DECLARE_INSTRUCTION | 6787 #undef DECLARE_INSTRUCTION |
| 6792 #undef DECLARE_CONCRETE_INSTRUCTION | 6788 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6793 | 6789 |
| 6794 } } // namespace v8::internal | 6790 } } // namespace v8::internal |
| 6795 | 6791 |
| 6796 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6792 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |