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) | |
ulan
2012/01/25 13:08:48
Don't forget SetDateField.
rossberg
2012/01/25 15:48:37
There was no HSetDateField instruction. ;) However
| |
183 | 184 |
184 #define GVN_FLAG_LIST(V) \ | 185 #define GVN_FLAG_LIST(V) \ |
185 V(Calls) \ | 186 V(Calls) \ |
186 V(InobjectFields) \ | 187 V(InobjectFields) \ |
187 V(BackingStoreFields) \ | 188 V(BackingStoreFields) \ |
188 V(ElementsKind) \ | 189 V(ElementsKind) \ |
189 V(ArrayElements) \ | 190 V(ArrayElements) \ |
190 V(DoubleArrayElements) \ | 191 V(DoubleArrayElements) \ |
191 V(SpecializedArrayElements) \ | 192 V(SpecializedArrayElements) \ |
192 V(GlobalVars) \ | 193 V(GlobalVars) \ |
(...skipping 4310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4503 } | 4504 } |
4504 | 4505 |
4505 virtual Representation RequiredInputRepresentation(int index) { | 4506 virtual Representation RequiredInputRepresentation(int index) { |
4506 return Representation::Tagged(); | 4507 return Representation::Tagged(); |
4507 } | 4508 } |
4508 | 4509 |
4509 DECLARE_CONCRETE_INSTRUCTION(ValueOf) | 4510 DECLARE_CONCRETE_INSTRUCTION(ValueOf) |
4510 }; | 4511 }; |
4511 | 4512 |
4512 | 4513 |
4514 class HDateField: public HUnaryOperation { | |
ulan
2012/01/25 13:08:48
This instruction has two arguments, so HBinaryOper
rossberg
2012/01/25 15:48:37
No, it's a unary instruction. The index is merely
| |
4515 public: | |
4516 HDateField(HValue* value, int index) | |
4517 : HUnaryOperation(value), index_(index) { | |
4518 set_representation(Representation::Tagged()); | |
ulan
2012/01/25 13:08:48
Is it possible to use Int32 representation and deo
rossberg
2012/01/25 15:48:37
Then I would need to implement the untagging in th
| |
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 | |
4513 class HDeleteProperty: public HBinaryOperation { | 4534 class HDeleteProperty: public HBinaryOperation { |
4514 public: | 4535 public: |
4515 HDeleteProperty(HValue* context, HValue* obj, HValue* key) | 4536 HDeleteProperty(HValue* context, HValue* obj, HValue* key) |
4516 : HBinaryOperation(context, obj, key) { | 4537 : HBinaryOperation(context, obj, key) { |
4517 set_representation(Representation::Tagged()); | 4538 set_representation(Representation::Tagged()); |
4518 SetAllSideEffects(); | 4539 SetAllSideEffects(); |
4519 } | 4540 } |
4520 | 4541 |
4521 virtual Representation RequiredInputRepresentation(int index) { | 4542 virtual Representation RequiredInputRepresentation(int index) { |
4522 return Representation::Tagged(); | 4543 return Representation::Tagged(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4557 | 4578 |
4558 DECLARE_CONCRETE_INSTRUCTION(In) | 4579 DECLARE_CONCRETE_INSTRUCTION(In) |
4559 }; | 4580 }; |
4560 | 4581 |
4561 #undef DECLARE_INSTRUCTION | 4582 #undef DECLARE_INSTRUCTION |
4562 #undef DECLARE_CONCRETE_INSTRUCTION | 4583 #undef DECLARE_CONCRETE_INSTRUCTION |
4563 | 4584 |
4564 } } // namespace v8::internal | 4585 } } // namespace v8::internal |
4565 | 4586 |
4566 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4587 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |