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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 V(ThisFunction) \ | 172 V(ThisFunction) \ |
173 V(Throw) \ | 173 V(Throw) \ |
174 V(ToFastProperties) \ | 174 V(ToFastProperties) \ |
175 V(ToInt32) \ | 175 V(ToInt32) \ |
176 V(TransitionElementsKind) \ | 176 V(TransitionElementsKind) \ |
177 V(Typeof) \ | 177 V(Typeof) \ |
178 V(TypeofIsAndBranch) \ | 178 V(TypeofIsAndBranch) \ |
179 V(UnaryMathOperation) \ | 179 V(UnaryMathOperation) \ |
180 V(UnknownOSRValue) \ | 180 V(UnknownOSRValue) \ |
181 V(UseConst) \ | 181 V(UseConst) \ |
182 V(ValueOf) | 182 V(ValueOf) \ |
| 183 V(DateField) \ |
| 184 V(SetDateField) |
183 | 185 |
184 #define GVN_FLAG_LIST(V) \ | 186 #define GVN_FLAG_LIST(V) \ |
185 V(Calls) \ | 187 V(Calls) \ |
186 V(InobjectFields) \ | 188 V(InobjectFields) \ |
187 V(BackingStoreFields) \ | 189 V(BackingStoreFields) \ |
188 V(ElementsKind) \ | 190 V(ElementsKind) \ |
189 V(ArrayElements) \ | 191 V(ArrayElements) \ |
190 V(DoubleArrayElements) \ | 192 V(DoubleArrayElements) \ |
191 V(SpecializedArrayElements) \ | 193 V(SpecializedArrayElements) \ |
192 V(GlobalVars) \ | 194 V(GlobalVars) \ |
(...skipping 4310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4503 } | 4505 } |
4504 | 4506 |
4505 virtual Representation RequiredInputRepresentation(int index) { | 4507 virtual Representation RequiredInputRepresentation(int index) { |
4506 return Representation::Tagged(); | 4508 return Representation::Tagged(); |
4507 } | 4509 } |
4508 | 4510 |
4509 DECLARE_CONCRETE_INSTRUCTION(ValueOf) | 4511 DECLARE_CONCRETE_INSTRUCTION(ValueOf) |
4510 }; | 4512 }; |
4511 | 4513 |
4512 | 4514 |
| 4515 class HDateField: public HUnaryOperation { |
| 4516 public: |
| 4517 HDateField(HValue* date, int index) : HUnaryOperation(date), index_(index) { |
| 4518 set_representation(Representation::Tagged()); |
| 4519 } |
| 4520 |
| 4521 int index() const { return index_; } |
| 4522 |
| 4523 virtual Representation RequiredInputRepresentation(int index) { |
| 4524 return Representation::Tagged(); |
| 4525 } |
| 4526 |
| 4527 DECLARE_CONCRETE_INSTRUCTION(DateField) |
| 4528 |
| 4529 private: |
| 4530 int index_; |
| 4531 }; |
| 4532 |
| 4533 |
| 4534 class HSetDateField: public HBinaryOperation { |
| 4535 public: |
| 4536 HSetDateField(HValue* context, HValue* date, HValue* value, int index) |
| 4537 : HBinaryOperation(context, date, value), index_(index) { |
| 4538 set_representation(Representation::Tagged()); |
| 4539 } |
| 4540 |
| 4541 int index() const { return index_; } |
| 4542 |
| 4543 virtual Representation RequiredInputRepresentation(int index) { |
| 4544 return Representation::Tagged(); |
| 4545 } |
| 4546 |
| 4547 DECLARE_CONCRETE_INSTRUCTION(SetDateField) |
| 4548 |
| 4549 private: |
| 4550 int index_; |
| 4551 }; |
| 4552 |
| 4553 |
4513 class HDeleteProperty: public HBinaryOperation { | 4554 class HDeleteProperty: public HBinaryOperation { |
4514 public: | 4555 public: |
4515 HDeleteProperty(HValue* context, HValue* obj, HValue* key) | 4556 HDeleteProperty(HValue* context, HValue* obj, HValue* key) |
4516 : HBinaryOperation(context, obj, key) { | 4557 : HBinaryOperation(context, obj, key) { |
4517 set_representation(Representation::Tagged()); | 4558 set_representation(Representation::Tagged()); |
4518 SetAllSideEffects(); | 4559 SetAllSideEffects(); |
4519 } | 4560 } |
4520 | 4561 |
4521 virtual Representation RequiredInputRepresentation(int index) { | 4562 virtual Representation RequiredInputRepresentation(int index) { |
4522 return Representation::Tagged(); | 4563 return Representation::Tagged(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4557 | 4598 |
4558 DECLARE_CONCRETE_INSTRUCTION(In) | 4599 DECLARE_CONCRETE_INSTRUCTION(In) |
4559 }; | 4600 }; |
4560 | 4601 |
4561 #undef DECLARE_INSTRUCTION | 4602 #undef DECLARE_INSTRUCTION |
4562 #undef DECLARE_CONCRETE_INSTRUCTION | 4603 #undef DECLARE_CONCRETE_INSTRUCTION |
4563 | 4604 |
4564 } } // namespace v8::internal | 4605 } } // namespace v8::internal |
4565 | 4606 |
4566 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4607 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |