Chromium Code Reviews| 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...) Expand 10 before | Expand all | Expand 10 after 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); | |
| 2778 } | |
| 2779 | |
| 2780 virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited) { | |
|
Yang
2012/06/20 12:19:42
All implementations of EnsureAndPropagateNotMinusZ
Zheng Liu
2012/06/20 13:54:15
Done.
| |
| 2781 visited->Add(id()); | |
| 2782 SetFlag(kBailoutOnMinusZero); | |
| 2783 return NULL; | |
| 2777 } | 2784 } |
| 2778 | 2785 |
| 2779 virtual Representation RequiredInputRepresentation(int index) { | 2786 virtual Representation RequiredInputRepresentation(int index) { |
| 2780 return Representation::Integer32(); | 2787 return Representation::Integer32(); |
| 2781 } | 2788 } |
| 2782 | 2789 |
| 2783 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) | 2790 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv) |
| 2784 | 2791 |
| 2785 protected: | 2792 protected: |
| 2786 virtual bool DataEquals(HValue* other) { return true; } | 2793 virtual bool DataEquals(HValue* other) { return true; } |
| (...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5094 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 5101 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
| 5095 }; | 5102 }; |
| 5096 | 5103 |
| 5097 | 5104 |
| 5098 #undef DECLARE_INSTRUCTION | 5105 #undef DECLARE_INSTRUCTION |
| 5099 #undef DECLARE_CONCRETE_INSTRUCTION | 5106 #undef DECLARE_CONCRETE_INSTRUCTION |
| 5100 | 5107 |
| 5101 } } // namespace v8::internal | 5108 } } // namespace v8::internal |
| 5102 | 5109 |
| 5103 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5110 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |