Index: src/crankshaft/mips/lithium-mips.h |
diff --git a/src/crankshaft/mips/lithium-mips.h b/src/crankshaft/mips/lithium-mips.h |
index 880d243312a80c7c5138dcf890dd5e2343f93d93..1ff41ea08ba75b2601831d3e056bddf8ab28573e 100644 |
--- a/src/crankshaft/mips/lithium-mips.h |
+++ b/src/crankshaft/mips/lithium-mips.h |
@@ -60,6 +60,7 @@ |
V(ConstantT) \ |
V(ConstructDouble) \ |
V(Context) \ |
+ V(DateField) \ |
V(DebugBreak) \ |
V(DeclareGlobals) \ |
V(Deoptimize) \ |
@@ -1336,6 +1337,25 @@ |
}; |
+class LDateField final : public LTemplateInstruction<1, 1, 1> { |
+ public: |
+ LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) { |
+ inputs_[0] = date; |
+ temps_[0] = temp; |
+ } |
+ |
+ LOperand* date() { return inputs_[0]; } |
+ LOperand* temp() { return temps_[0]; } |
+ Smi* index() const { return index_; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
+ DECLARE_HYDROGEN_ACCESSOR(DateField) |
+ |
+ private: |
+ Smi* index_; |
+}; |
+ |
+ |
class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { |
public: |
LSeqStringGetChar(LOperand* string, LOperand* index) { |