Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index cee90a9df1f6628852519bd73bd395eeaeecd948..70df41f49c453d878911257926a26aac9904ea1f 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -185,7 +185,8 @@ class LChunkBuilder; |
V(ForInPrepareMap) \ |
V(ForInCacheArray) \ |
V(CheckMapValue) \ |
- V(LoadFieldByIndex) |
+ V(LoadFieldByIndex) \ |
+ V(DateField) |
#define GVN_FLAG_LIST(V) \ |
V(Calls) \ |
@@ -4629,6 +4630,26 @@ class HValueOf: public HUnaryOperation { |
}; |
+class HDateField: public HUnaryOperation { |
+ public: |
+ HDateField(HValue* date, Smi* index) |
rossberg
2012/03/06 15:55:50
See above.
ulan
2012/03/07 10:55:21
Done.
|
+ : HUnaryOperation(date), index_(index) { |
+ set_representation(Representation::Tagged()); |
+ } |
+ |
+ Smi* index() const { return index_; } |
+ |
+ virtual Representation RequiredInputRepresentation(int index) { |
+ return Representation::Tagged(); |
+ } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(DateField) |
+ |
+ private: |
+ Smi* index_; |
+}; |
+ |
+ |
class HDeleteProperty: public HBinaryOperation { |
public: |
HDeleteProperty(HValue* context, HValue* obj, HValue* key) |