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 2756 matching lines...) Loading... |
2767 Representation observed_input_representation_[3]; | 2767 Representation observed_input_representation_[3]; |
2768 }; | 2768 }; |
2769 | 2769 |
2770 | 2770 |
2771 class HMathFloorOfDiv: public HBinaryOperation { | 2771 class HMathFloorOfDiv: public HBinaryOperation { |
2772 public: | 2772 public: |
2773 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right) | 2773 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right) |
2774 : HBinaryOperation(context, left, right) { | 2774 : HBinaryOperation(context, left, right) { |
2775 set_representation(Representation::Integer32()); | 2775 set_representation(Representation::Integer32()); |
2776 SetFlag(kUseGVN); | 2776 SetFlag(kUseGVN); |
| 2777 SetFlag(kCanOverflow); |
2777 } | 2778 } |
2778 | 2779 |
| 2780 virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited); |
| 2781 |
2779 virtual Representation RequiredInputRepresentation(int index) { | 2782 virtual Representation RequiredInputRepresentation(int index) { |
2780 return Representation::Integer32(); | 2783 return Representation::Integer32(); |
2781 } | 2784 } |
2782 | 2785 |
2783 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) | 2786 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) |
2784 | 2787 |
2785 protected: | 2788 protected: |
2786 virtual bool DataEquals(HValue* other) { return true; } | 2789 virtual bool DataEquals(HValue* other) { return true; } |
2787 }; | 2790 }; |
2788 | 2791 |
(...skipping 2305 matching lines...) Loading... |
5094 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 5097 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
5095 }; | 5098 }; |
5096 | 5099 |
5097 | 5100 |
5098 #undef DECLARE_INSTRUCTION | 5101 #undef DECLARE_INSTRUCTION |
5099 #undef DECLARE_CONCRETE_INSTRUCTION | 5102 #undef DECLARE_CONCRETE_INSTRUCTION |
5100 | 5103 |
5101 } } // namespace v8::internal | 5104 } } // namespace v8::internal |
5102 | 5105 |
5103 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5106 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |