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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 V(Typeof) \ | 178 V(Typeof) \ |
179 V(TypeofIsAndBranch) \ | 179 V(TypeofIsAndBranch) \ |
180 V(UnaryMathOperation) \ | 180 V(UnaryMathOperation) \ |
181 V(UnknownOSRValue) \ | 181 V(UnknownOSRValue) \ |
182 V(UseConst) \ | 182 V(UseConst) \ |
183 V(ValueOf) \ | 183 V(ValueOf) \ |
184 V(ForInPrepareMap) \ | 184 V(ForInPrepareMap) \ |
185 V(ForInCacheArray) \ | 185 V(ForInCacheArray) \ |
186 V(CheckMapValue) \ | 186 V(CheckMapValue) \ |
187 V(LoadFieldByIndex) \ | 187 V(LoadFieldByIndex) \ |
188 V(DateField) \ | 188 V(DateField) |
189 V(SetDateField) | |
190 | 189 |
191 #define GVN_FLAG_LIST(V) \ | 190 #define GVN_FLAG_LIST(V) \ |
192 V(Calls) \ | 191 V(Calls) \ |
193 V(InobjectFields) \ | 192 V(InobjectFields) \ |
194 V(BackingStoreFields) \ | 193 V(BackingStoreFields) \ |
195 V(ElementsKind) \ | 194 V(ElementsKind) \ |
196 V(ElementsPointer) \ | 195 V(ElementsPointer) \ |
197 V(ArrayElements) \ | 196 V(ArrayElements) \ |
198 V(DoubleArrayElements) \ | 197 V(DoubleArrayElements) \ |
199 V(SpecializedArrayElements) \ | 198 V(SpecializedArrayElements) \ |
(...skipping 4399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4599 virtual Representation RequiredInputRepresentation(int index) { | 4598 virtual Representation RequiredInputRepresentation(int index) { |
4600 return Representation::Tagged(); | 4599 return Representation::Tagged(); |
4601 } | 4600 } |
4602 | 4601 |
4603 DECLARE_CONCRETE_INSTRUCTION(ValueOf) | 4602 DECLARE_CONCRETE_INSTRUCTION(ValueOf) |
4604 }; | 4603 }; |
4605 | 4604 |
4606 | 4605 |
4607 class HDateField: public HUnaryOperation { | 4606 class HDateField: public HUnaryOperation { |
4608 public: | 4607 public: |
4609 HDateField(HValue* date, int index) : HUnaryOperation(date), index_(index) { | 4608 HDateField(HValue* date, Smi* index) |
| 4609 : HUnaryOperation(date), index_(index) { |
4610 set_representation(Representation::Tagged()); | 4610 set_representation(Representation::Tagged()); |
4611 } | 4611 } |
4612 | 4612 |
4613 int index() const { return index_; } | 4613 Smi* index() const { return index_; } |
4614 | 4614 |
4615 virtual Representation RequiredInputRepresentation(int index) { | 4615 virtual Representation RequiredInputRepresentation(int index) { |
4616 return Representation::Tagged(); | 4616 return Representation::Tagged(); |
4617 } | 4617 } |
4618 | 4618 |
4619 DECLARE_CONCRETE_INSTRUCTION(DateField) | 4619 DECLARE_CONCRETE_INSTRUCTION(DateField) |
4620 | 4620 |
4621 private: | 4621 private: |
4622 int index_; | 4622 Smi* index_; |
4623 }; | 4623 }; |
4624 | 4624 |
4625 | 4625 |
4626 class HSetDateField: public HBinaryOperation { | |
4627 public: | |
4628 HSetDateField(HValue* context, HValue* date, HValue* value, int index) | |
4629 : HBinaryOperation(context, date, value), index_(index) { | |
4630 set_representation(Representation::Tagged()); | |
4631 } | |
4632 | |
4633 int index() const { return index_; } | |
4634 | |
4635 virtual Representation RequiredInputRepresentation(int index) { | |
4636 return Representation::Tagged(); | |
4637 } | |
4638 | |
4639 DECLARE_CONCRETE_INSTRUCTION(SetDateField) | |
4640 | |
4641 private: | |
4642 int index_; | |
4643 }; | |
4644 | |
4645 | |
4646 class HDeleteProperty: public HBinaryOperation { | 4626 class HDeleteProperty: public HBinaryOperation { |
4647 public: | 4627 public: |
4648 HDeleteProperty(HValue* context, HValue* obj, HValue* key) | 4628 HDeleteProperty(HValue* context, HValue* obj, HValue* key) |
4649 : HBinaryOperation(context, obj, key) { | 4629 : HBinaryOperation(context, obj, key) { |
4650 set_representation(Representation::Tagged()); | 4630 set_representation(Representation::Tagged()); |
4651 SetAllSideEffects(); | 4631 SetAllSideEffects(); |
4652 } | 4632 } |
4653 | 4633 |
4654 virtual Representation RequiredInputRepresentation(int index) { | 4634 virtual Representation RequiredInputRepresentation(int index) { |
4655 return Representation::Tagged(); | 4635 return Representation::Tagged(); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4818 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 4798 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
4819 }; | 4799 }; |
4820 | 4800 |
4821 | 4801 |
4822 #undef DECLARE_INSTRUCTION | 4802 #undef DECLARE_INSTRUCTION |
4823 #undef DECLARE_CONCRETE_INSTRUCTION | 4803 #undef DECLARE_CONCRETE_INSTRUCTION |
4824 | 4804 |
4825 } } // namespace v8::internal | 4805 } } // namespace v8::internal |
4826 | 4806 |
4827 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4807 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |