OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2755 public: | 2755 public: |
2756 explicit HHasCachedArrayIndex(HValue* value) : HUnaryPredicate(value) { } | 2756 explicit HHasCachedArrayIndex(HValue* value) : HUnaryPredicate(value) { } |
2757 | 2757 |
2758 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex) | 2758 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex) |
2759 | 2759 |
2760 protected: | 2760 protected: |
2761 virtual bool DataEquals(HValue* other) { return true; } | 2761 virtual bool DataEquals(HValue* other) { return true; } |
2762 }; | 2762 }; |
2763 | 2763 |
2764 | 2764 |
2765 class HGetCachedArrayIndex: public HUnaryPredicate { | 2765 class HGetCachedArrayIndex: public HUnaryOperation { |
2766 public: | 2766 public: |
2767 explicit HGetCachedArrayIndex(HValue* value) : HUnaryPredicate(value) { } | 2767 explicit HGetCachedArrayIndex(HValue* value) : HUnaryOperation(value) { |
| 2768 set_representation(Representation::Tagged()); |
| 2769 SetFlag(kUseGVN); |
| 2770 } |
| 2771 |
| 2772 virtual Representation RequiredInputRepresentation(int index) const { |
| 2773 return Representation::Tagged(); |
| 2774 } |
2768 | 2775 |
2769 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex) | 2776 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex) |
2770 | 2777 |
2771 protected: | 2778 protected: |
2772 virtual bool DataEquals(HValue* other) { return true; } | 2779 virtual bool DataEquals(HValue* other) { return true; } |
2773 }; | 2780 }; |
2774 | 2781 |
2775 | 2782 |
2776 class HClassOfTest: public HUnaryPredicate { | 2783 class HClassOfTest: public HUnaryPredicate { |
2777 public: | 2784 public: |
(...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4079 | 4086 |
4080 DECLARE_CONCRETE_INSTRUCTION(In) | 4087 DECLARE_CONCRETE_INSTRUCTION(In) |
4081 }; | 4088 }; |
4082 | 4089 |
4083 #undef DECLARE_INSTRUCTION | 4090 #undef DECLARE_INSTRUCTION |
4084 #undef DECLARE_CONCRETE_INSTRUCTION | 4091 #undef DECLARE_CONCRETE_INSTRUCTION |
4085 | 4092 |
4086 } } // namespace v8::internal | 4093 } } // namespace v8::internal |
4087 | 4094 |
4088 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4095 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |