Chromium Code Reviews| 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(TransitionElementsKind) \ | 178 V(TransitionElementsKind) \ |
| 179 V(Typeof) \ | 179 V(Typeof) \ |
| 180 V(TypeofIsAndBranch) \ | 180 V(TypeofIsAndBranch) \ |
| 181 V(UnaryMathOperation) \ | 181 V(UnaryMathOperation) \ |
| 182 V(UnknownOSRValue) \ | 182 V(UnknownOSRValue) \ |
| 183 V(UseConst) \ | 183 V(UseConst) \ |
| 184 V(ValueOf) \ | 184 V(ValueOf) \ |
| 185 V(ForInPrepareMap) \ | 185 V(ForInPrepareMap) \ |
| 186 V(ForInCacheArray) \ | 186 V(ForInCacheArray) \ |
| 187 V(CheckMapValue) \ | 187 V(CheckMapValue) \ |
| 188 V(LoadFieldByIndex) | 188 V(LoadFieldByIndex) \ |
| 189 V(DateField) | |
| 189 | 190 |
| 190 #define GVN_FLAG_LIST(V) \ | 191 #define GVN_FLAG_LIST(V) \ |
| 191 V(Calls) \ | 192 V(Calls) \ |
| 192 V(InobjectFields) \ | 193 V(InobjectFields) \ |
| 193 V(BackingStoreFields) \ | 194 V(BackingStoreFields) \ |
| 194 V(ElementsKind) \ | 195 V(ElementsKind) \ |
| 195 V(ElementsPointer) \ | 196 V(ElementsPointer) \ |
| 196 V(ArrayElements) \ | 197 V(ArrayElements) \ |
| 197 V(DoubleArrayElements) \ | 198 V(DoubleArrayElements) \ |
| 198 V(SpecializedArrayElements) \ | 199 V(SpecializedArrayElements) \ |
| (...skipping 4423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4622 } | 4623 } |
| 4623 | 4624 |
| 4624 virtual Representation RequiredInputRepresentation(int index) { | 4625 virtual Representation RequiredInputRepresentation(int index) { |
| 4625 return Representation::Tagged(); | 4626 return Representation::Tagged(); |
| 4626 } | 4627 } |
| 4627 | 4628 |
| 4628 DECLARE_CONCRETE_INSTRUCTION(ValueOf) | 4629 DECLARE_CONCRETE_INSTRUCTION(ValueOf) |
| 4629 }; | 4630 }; |
| 4630 | 4631 |
| 4631 | 4632 |
| 4633 class HDateField: public HUnaryOperation { | |
| 4634 public: | |
| 4635 HDateField(HValue* date, Smi* index) | |
|
rossberg
2012/03/06 15:55:50
See above.
ulan
2012/03/07 10:55:21
Done.
| |
| 4636 : HUnaryOperation(date), index_(index) { | |
| 4637 set_representation(Representation::Tagged()); | |
| 4638 } | |
| 4639 | |
| 4640 Smi* index() const { return index_; } | |
| 4641 | |
| 4642 virtual Representation RequiredInputRepresentation(int index) { | |
| 4643 return Representation::Tagged(); | |
| 4644 } | |
| 4645 | |
| 4646 DECLARE_CONCRETE_INSTRUCTION(DateField) | |
| 4647 | |
| 4648 private: | |
| 4649 Smi* index_; | |
| 4650 }; | |
| 4651 | |
| 4652 | |
| 4632 class HDeleteProperty: public HBinaryOperation { | 4653 class HDeleteProperty: public HBinaryOperation { |
| 4633 public: | 4654 public: |
| 4634 HDeleteProperty(HValue* context, HValue* obj, HValue* key) | 4655 HDeleteProperty(HValue* context, HValue* obj, HValue* key) |
| 4635 : HBinaryOperation(context, obj, key) { | 4656 : HBinaryOperation(context, obj, key) { |
| 4636 set_representation(Representation::Tagged()); | 4657 set_representation(Representation::Tagged()); |
| 4637 SetAllSideEffects(); | 4658 SetAllSideEffects(); |
| 4638 } | 4659 } |
| 4639 | 4660 |
| 4640 virtual Representation RequiredInputRepresentation(int index) { | 4661 virtual Representation RequiredInputRepresentation(int index) { |
| 4641 return Representation::Tagged(); | 4662 return Representation::Tagged(); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4804 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 4825 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
| 4805 }; | 4826 }; |
| 4806 | 4827 |
| 4807 | 4828 |
| 4808 #undef DECLARE_INSTRUCTION | 4829 #undef DECLARE_INSTRUCTION |
| 4809 #undef DECLARE_CONCRETE_INSTRUCTION | 4830 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4810 | 4831 |
| 4811 } } // namespace v8::internal | 4832 } } // namespace v8::internal |
| 4812 | 4833 |
| 4813 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4834 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |