Index: src/crankshaft/x64/lithium-x64.h |
diff --git a/src/crankshaft/x64/lithium-x64.h b/src/crankshaft/x64/lithium-x64.h |
index ebe1ef9e5dbe7d1f71cce0e98cb9f5e689366943..cb888116f0c1423c5edc08356f9b255dbff0006e 100644 |
--- a/src/crankshaft/x64/lithium-x64.h |
+++ b/src/crankshaft/x64/lithium-x64.h |
@@ -60,6 +60,7 @@ |
V(ConstantT) \ |
V(ConstructDouble) \ |
V(Context) \ |
+ V(DateField) \ |
V(DebugBreak) \ |
V(DeclareGlobals) \ |
V(Deoptimize) \ |
@@ -1342,6 +1343,23 @@ |
}; |
+class LDateField final : public LTemplateInstruction<1, 1, 0> { |
+ public: |
+ LDateField(LOperand* date, Smi* index) : index_(index) { |
+ inputs_[0] = date; |
+ } |
+ |
+ LOperand* date() { return inputs_[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) { |