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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 V(Mul) \ | 145 V(Mul) \ |
146 V(ObjectLiteral) \ | 146 V(ObjectLiteral) \ |
147 V(OsrEntry) \ | 147 V(OsrEntry) \ |
148 V(OuterContext) \ | 148 V(OuterContext) \ |
149 V(Parameter) \ | 149 V(Parameter) \ |
150 V(Power) \ | 150 V(Power) \ |
151 V(PushArgument) \ | 151 V(PushArgument) \ |
152 V(Random) \ | 152 V(Random) \ |
153 V(RegExpLiteral) \ | 153 V(RegExpLiteral) \ |
154 V(Return) \ | 154 V(Return) \ |
| 155 V(Ror) \ |
155 V(Sar) \ | 156 V(Sar) \ |
156 V(Shl) \ | 157 V(Shl) \ |
157 V(Shr) \ | 158 V(Shr) \ |
158 V(Simulate) \ | 159 V(Simulate) \ |
159 V(SoftDeoptimize) \ | 160 V(SoftDeoptimize) \ |
160 V(StackCheck) \ | 161 V(StackCheck) \ |
161 V(StoreContextSlot) \ | 162 V(StoreContextSlot) \ |
162 V(StoreGlobalCell) \ | 163 V(StoreGlobalCell) \ |
163 V(StoreGlobalGeneric) \ | 164 V(StoreGlobalGeneric) \ |
164 V(StoreKeyed) \ | 165 V(StoreKeyed) \ |
(...skipping 3557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3722 HValue* left, | 3723 HValue* left, |
3723 HValue* right); | 3724 HValue* right); |
3724 | 3725 |
3725 DECLARE_CONCRETE_INSTRUCTION(Sar) | 3726 DECLARE_CONCRETE_INSTRUCTION(Sar) |
3726 | 3727 |
3727 protected: | 3728 protected: |
3728 virtual bool DataEquals(HValue* other) { return true; } | 3729 virtual bool DataEquals(HValue* other) { return true; } |
3729 }; | 3730 }; |
3730 | 3731 |
3731 | 3732 |
| 3733 class HRor: public HBitwiseBinaryOperation { |
| 3734 public: |
| 3735 HRor(HValue* context, HValue* left, HValue* right) |
| 3736 : HBitwiseBinaryOperation(context, left, right) { |
| 3737 ChangeRepresentation(Representation::Integer32()); |
| 3738 } |
| 3739 |
| 3740 static HInstruction* NewHRor(Zone* zone, |
| 3741 HValue* context, |
| 3742 HValue* left, |
| 3743 HValue* right); |
| 3744 |
| 3745 DECLARE_CONCRETE_INSTRUCTION(Ror) |
| 3746 |
| 3747 protected: |
| 3748 virtual bool DataEquals(HValue* other) { return true; } |
| 3749 }; |
| 3750 |
| 3751 |
3732 class HOsrEntry: public HTemplateInstruction<0> { | 3752 class HOsrEntry: public HTemplateInstruction<0> { |
3733 public: | 3753 public: |
3734 explicit HOsrEntry(BailoutId ast_id) : ast_id_(ast_id) { | 3754 explicit HOsrEntry(BailoutId ast_id) : ast_id_(ast_id) { |
3735 SetGVNFlag(kChangesOsrEntries); | 3755 SetGVNFlag(kChangesOsrEntries); |
3736 } | 3756 } |
3737 | 3757 |
3738 BailoutId ast_id() const { return ast_id_; } | 3758 BailoutId ast_id() const { return ast_id_; } |
3739 | 3759 |
3740 virtual Representation RequiredInputRepresentation(int index) { | 3760 virtual Representation RequiredInputRepresentation(int index) { |
3741 return Representation::None(); | 3761 return Representation::None(); |
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5264 virtual bool IsDeletable() const { return true; } | 5284 virtual bool IsDeletable() const { return true; } |
5265 }; | 5285 }; |
5266 | 5286 |
5267 | 5287 |
5268 #undef DECLARE_INSTRUCTION | 5288 #undef DECLARE_INSTRUCTION |
5269 #undef DECLARE_CONCRETE_INSTRUCTION | 5289 #undef DECLARE_CONCRETE_INSTRUCTION |
5270 | 5290 |
5271 } } // namespace v8::internal | 5291 } } // namespace v8::internal |
5272 | 5292 |
5273 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5293 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |