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 2739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2750 DECLARE_ABSTRACT_INSTRUCTION(BitwiseBinaryOperation) | 2750 DECLARE_ABSTRACT_INSTRUCTION(BitwiseBinaryOperation) |
2751 }; | 2751 }; |
2752 | 2752 |
2753 | 2753 |
2754 class HMathFloorOfDiv: public HBinaryOperation { | 2754 class HMathFloorOfDiv: public HBinaryOperation { |
2755 public: | 2755 public: |
2756 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right) | 2756 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right) |
2757 : HBinaryOperation(context, left, right) { | 2757 : HBinaryOperation(context, left, right) { |
2758 set_representation(Representation::Integer32()); | 2758 set_representation(Representation::Integer32()); |
2759 SetFlag(kUseGVN); | 2759 SetFlag(kUseGVN); |
| 2760 SetFlag(kCanOverflow); |
2760 } | 2761 } |
2761 | 2762 |
2762 virtual Representation RequiredInputRepresentation(int index) { | 2763 virtual Representation RequiredInputRepresentation(int index) { |
2763 return Representation::Integer32(); | 2764 return Representation::Integer32(); |
2764 } | 2765 } |
2765 | 2766 |
2766 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) | 2767 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) |
2767 | 2768 |
2768 protected: | 2769 protected: |
2769 virtual bool DataEquals(HValue* other) { return true; } | 2770 virtual bool DataEquals(HValue* other) { return true; } |
(...skipping 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4959 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 4960 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
4960 }; | 4961 }; |
4961 | 4962 |
4962 | 4963 |
4963 #undef DECLARE_INSTRUCTION | 4964 #undef DECLARE_INSTRUCTION |
4964 #undef DECLARE_CONCRETE_INSTRUCTION | 4965 #undef DECLARE_CONCRETE_INSTRUCTION |
4965 | 4966 |
4966 } } // namespace v8::internal | 4967 } } // namespace v8::internal |
4967 | 4968 |
4968 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4969 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |