| 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 2801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2812 SetFlag(kFlexibleRepresentation); | 2812 SetFlag(kFlexibleRepresentation); |
| 2813 SetFlag(kUseGVN); | 2813 SetFlag(kUseGVN); |
| 2814 } | 2814 } |
| 2815 | 2815 |
| 2816 virtual int RedefinedOperandIndex() { return 0; } | 2816 virtual int RedefinedOperandIndex() { return 0; } |
| 2817 virtual Representation RequiredInputRepresentation(int index) { | 2817 virtual Representation RequiredInputRepresentation(int index) { |
| 2818 return representation(); | 2818 return representation(); |
| 2819 } | 2819 } |
| 2820 virtual void InferRepresentation(HInferRepresentation* h_infer); | 2820 virtual void InferRepresentation(HInferRepresentation* h_infer); |
| 2821 | 2821 |
| 2822 virtual Representation observed_input_representation(int index) { |
| 2823 return Representation::Integer32(); |
| 2824 } |
| 2825 |
| 2822 virtual HValue* Canonicalize() { | 2826 virtual HValue* Canonicalize() { |
| 2823 if (representation().IsTagged() && !type().IsSmi()) { | 2827 if (representation().IsTagged() && !type().IsSmi()) { |
| 2824 return this; | 2828 return this; |
| 2825 } else { | 2829 } else { |
| 2826 return value(); | 2830 return value(); |
| 2827 } | 2831 } |
| 2828 } | 2832 } |
| 2829 | 2833 |
| 2830 DECLARE_CONCRETE_INSTRUCTION(CheckSmiOrInt32) | 2834 DECLARE_CONCRETE_INSTRUCTION(CheckSmiOrInt32) |
| 2831 | 2835 |
| (...skipping 3182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6014 virtual bool IsDeletable() const { return true; } | 6018 virtual bool IsDeletable() const { return true; } |
| 6015 }; | 6019 }; |
| 6016 | 6020 |
| 6017 | 6021 |
| 6018 #undef DECLARE_INSTRUCTION | 6022 #undef DECLARE_INSTRUCTION |
| 6019 #undef DECLARE_CONCRETE_INSTRUCTION | 6023 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6020 | 6024 |
| 6021 } } // namespace v8::internal | 6025 } } // namespace v8::internal |
| 6022 | 6026 |
| 6023 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6027 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |