Index: src/mips/lithium-mips.h |
diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h |
index 2128ce3e9eb127eb049d7ba773f5dbcaa340b96e..2462c449bb039d441c451343bd1041f5166c8f46 100644 |
--- a/src/mips/lithium-mips.h |
+++ b/src/mips/lithium-mips.h |
@@ -177,8 +177,8 @@ class LCodeGen; |
V(ForInPrepareMap) \ |
V(ForInCacheArray) \ |
V(CheckMapValue) \ |
- V(LoadFieldByIndex) |
- |
+ V(LoadFieldByIndex) \ |
+ V(DateField) |
#define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
virtual Opcode opcode() const { return LInstruction::k##type; } \ |
@@ -989,6 +989,41 @@ class LValueOf: public LTemplateInstruction<1, 1, 1> { |
}; |
+class LDateField: public LTemplateInstruction<1, 1, 1> { |
+ public: |
+ LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) { |
+ inputs_[0] = date; |
+ temps_[0] = temp; |
+ } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(ValueOf, "date-field") |
+ DECLARE_HYDROGEN_ACCESSOR(ValueOf) |
+ Smi* index() const { return index_; } |
+ |
+ private: |
+ Smi* index_; |
+}; |
+ |
+ |
+class LSetDateField: public LTemplateInstruction<1, 2, 1> { |
ulan
2012/03/12 08:43:33
I will remove this class since it is not used anym
|
+ public: |
+ LSetDateField(LOperand* date, LOperand* value, LOperand* temp, int index) |
+ : index_(index) { |
+ inputs_[0] = date; |
+ inputs_[1] = value; |
+ temps_[0] = temp; |
+ } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(DateField, "date-set-field") |
+ DECLARE_HYDROGEN_ACCESSOR(DateField) |
+ |
+ int index() const { return index_; } |
+ |
+ private: |
+ int index_; |
+}; |
+ |
+ |
class LThrow: public LTemplateInstruction<0, 1, 0> { |
public: |
explicit LThrow(LOperand* value) { |