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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 V(OsrEntry) \ | 148 V(OsrEntry) \ |
149 V(OuterContext) \ | 149 V(OuterContext) \ |
150 V(Parameter) \ | 150 V(Parameter) \ |
151 V(Power) \ | 151 V(Power) \ |
152 V(PushArgument) \ | 152 V(PushArgument) \ |
153 V(Random) \ | 153 V(Random) \ |
154 V(RegExpLiteral) \ | 154 V(RegExpLiteral) \ |
155 V(Return) \ | 155 V(Return) \ |
156 V(Ror) \ | 156 V(Ror) \ |
157 V(Sar) \ | 157 V(Sar) \ |
| 158 V(SeqStringSetChar) \ |
158 V(Shl) \ | 159 V(Shl) \ |
159 V(Shr) \ | 160 V(Shr) \ |
160 V(Simulate) \ | 161 V(Simulate) \ |
161 V(SoftDeoptimize) \ | 162 V(SoftDeoptimize) \ |
162 V(StackCheck) \ | 163 V(StackCheck) \ |
163 V(StoreContextSlot) \ | 164 V(StoreContextSlot) \ |
164 V(StoreGlobalCell) \ | 165 V(StoreGlobalCell) \ |
165 V(StoreGlobalGeneric) \ | 166 V(StoreGlobalGeneric) \ |
166 V(StoreKeyed) \ | 167 V(StoreKeyed) \ |
167 V(StoreKeyedGeneric) \ | 168 V(StoreKeyedGeneric) \ |
(...skipping 5037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5205 return Representation::Tagged(); | 5206 return Representation::Tagged(); |
5206 } | 5207 } |
5207 | 5208 |
5208 DECLARE_CONCRETE_INSTRUCTION(DateField) | 5209 DECLARE_CONCRETE_INSTRUCTION(DateField) |
5209 | 5210 |
5210 private: | 5211 private: |
5211 Smi* index_; | 5212 Smi* index_; |
5212 }; | 5213 }; |
5213 | 5214 |
5214 | 5215 |
| 5216 class HSeqStringSetChar: public HTemplateInstruction<3> { |
| 5217 public: |
| 5218 HSeqStringSetChar(bool is_one_byte, |
| 5219 HValue* string, |
| 5220 HValue* index, |
| 5221 HValue* value) : is_one_byte_(is_one_byte) { |
| 5222 SetOperandAt(0, string); |
| 5223 SetOperandAt(1, index); |
| 5224 SetOperandAt(2, value); |
| 5225 } |
| 5226 |
| 5227 bool is_one_byte() { return is_one_byte_; } |
| 5228 HValue* string() { return OperandAt(0); } |
| 5229 HValue* index() { return OperandAt(1); } |
| 5230 HValue* value() { return OperandAt(2); } |
| 5231 |
| 5232 virtual Representation RequiredInputRepresentation(int index) { |
| 5233 return Representation::Tagged(); |
| 5234 } |
| 5235 |
| 5236 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar) |
| 5237 |
| 5238 private: |
| 5239 bool is_one_byte_; |
| 5240 }; |
| 5241 |
| 5242 |
5215 class HDeleteProperty: public HBinaryOperation { | 5243 class HDeleteProperty: public HBinaryOperation { |
5216 public: | 5244 public: |
5217 HDeleteProperty(HValue* context, HValue* obj, HValue* key) | 5245 HDeleteProperty(HValue* context, HValue* obj, HValue* key) |
5218 : HBinaryOperation(context, obj, key) { | 5246 : HBinaryOperation(context, obj, key) { |
5219 set_representation(Representation::Tagged()); | 5247 set_representation(Representation::Tagged()); |
5220 SetAllSideEffects(); | 5248 SetAllSideEffects(); |
5221 } | 5249 } |
5222 | 5250 |
5223 virtual Representation RequiredInputRepresentation(int index) { | 5251 virtual Representation RequiredInputRepresentation(int index) { |
5224 return Representation::Tagged(); | 5252 return Representation::Tagged(); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5390 virtual bool IsDeletable() const { return true; } | 5418 virtual bool IsDeletable() const { return true; } |
5391 }; | 5419 }; |
5392 | 5420 |
5393 | 5421 |
5394 #undef DECLARE_INSTRUCTION | 5422 #undef DECLARE_INSTRUCTION |
5395 #undef DECLARE_CONCRETE_INSTRUCTION | 5423 #undef DECLARE_CONCRETE_INSTRUCTION |
5396 | 5424 |
5397 } } // namespace v8::internal | 5425 } } // namespace v8::internal |
5398 | 5426 |
5399 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5427 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |