Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: src/hydrogen-instructions.h

Issue 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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) \
190 V(SetDateField)
189 191
190 #define GVN_FLAG_LIST(V) \ 192 #define GVN_FLAG_LIST(V) \
191 V(Calls) \ 193 V(Calls) \
192 V(InobjectFields) \ 194 V(InobjectFields) \
193 V(BackingStoreFields) \ 195 V(BackingStoreFields) \
194 V(ElementsKind) \ 196 V(ElementsKind) \
195 V(ElementsPointer) \ 197 V(ElementsPointer) \
196 V(ArrayElements) \ 198 V(ArrayElements) \
197 V(DoubleArrayElements) \ 199 V(DoubleArrayElements) \
198 V(SpecializedArrayElements) \ 200 V(SpecializedArrayElements) \
(...skipping 4423 matching lines...) Expand 10 before | Expand all | Expand 10 after
4622 } 4624 }
4623 4625
4624 virtual Representation RequiredInputRepresentation(int index) { 4626 virtual Representation RequiredInputRepresentation(int index) {
4625 return Representation::Tagged(); 4627 return Representation::Tagged();
4626 } 4628 }
4627 4629
4628 DECLARE_CONCRETE_INSTRUCTION(ValueOf) 4630 DECLARE_CONCRETE_INSTRUCTION(ValueOf)
4629 }; 4631 };
4630 4632
4631 4633
4634 class HDateField: public HUnaryOperation {
4635 public:
4636 HDateField(HValue* date, int index) : HUnaryOperation(date), index_(index) {
4637 set_representation(Representation::Tagged());
4638 }
4639
4640 int 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 int index_;
4650 };
4651
4652
4653 class HSetDateField: public HBinaryOperation {
4654 public:
4655 HSetDateField(HValue* context, HValue* date, HValue* value, int index)
4656 : HBinaryOperation(context, date, value), index_(index) {
4657 set_representation(Representation::Tagged());
4658 }
4659
4660 int index() const { return index_; }
4661
4662 virtual Representation RequiredInputRepresentation(int index) {
4663 return Representation::Tagged();
4664 }
4665
4666 DECLARE_CONCRETE_INSTRUCTION(SetDateField)
4667
4668 private:
4669 int index_;
4670 };
4671
4672
4632 class HDeleteProperty: public HBinaryOperation { 4673 class HDeleteProperty: public HBinaryOperation {
4633 public: 4674 public:
4634 HDeleteProperty(HValue* context, HValue* obj, HValue* key) 4675 HDeleteProperty(HValue* context, HValue* obj, HValue* key)
4635 : HBinaryOperation(context, obj, key) { 4676 : HBinaryOperation(context, obj, key) {
4636 set_representation(Representation::Tagged()); 4677 set_representation(Representation::Tagged());
4637 SetAllSideEffects(); 4678 SetAllSideEffects();
4638 } 4679 }
4639 4680
4640 virtual Representation RequiredInputRepresentation(int index) { 4681 virtual Representation RequiredInputRepresentation(int index) {
4641 return Representation::Tagged(); 4682 return Representation::Tagged();
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
4804 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 4845 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
4805 }; 4846 };
4806 4847
4807 4848
4808 #undef DECLARE_INSTRUCTION 4849 #undef DECLARE_INSTRUCTION
4809 #undef DECLARE_CONCRETE_INSTRUCTION 4850 #undef DECLARE_CONCRETE_INSTRUCTION
4810 4851
4811 } } // namespace v8::internal 4852 } } // namespace v8::internal
4812 4853
4813 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 4854 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698