Index: src/crankshaft/hydrogen-instructions.h |
diff --git a/src/crankshaft/hydrogen-instructions.h b/src/crankshaft/hydrogen-instructions.h |
index 13ada8c606cfa7a79384bb2c7dfbb8bddfa442fa..44dcea0e39eec0f5c3eab5b37562506fbd4bedd4 100644 |
--- a/src/crankshaft/hydrogen-instructions.h |
+++ b/src/crankshaft/hydrogen-instructions.h |
@@ -85,6 +85,7 @@ |
V(Constant) \ |
V(ConstructDouble) \ |
V(Context) \ |
+ V(DateField) \ |
V(DebugBreak) \ |
V(DeclareGlobals) \ |
V(Deoptimize) \ |
@@ -7531,6 +7532,28 @@ |
}; |
+class HDateField final : public HUnaryOperation { |
+ public: |
+ DECLARE_INSTRUCTION_FACTORY_P2(HDateField, HValue*, Smi*); |
+ |
+ Smi* index() const { return index_; } |
+ |
+ Representation RequiredInputRepresentation(int index) override { |
+ return Representation::Tagged(); |
+ } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(DateField) |
+ |
+ private: |
+ HDateField(HValue* date, Smi* index) |
+ : HUnaryOperation(date), index_(index) { |
+ set_representation(Representation::Tagged()); |
+ } |
+ |
+ Smi* index_; |
+}; |
+ |
+ |
class HSeqStringGetChar final : public HTemplateInstruction<2> { |
public: |
static HInstruction* New(Isolate* isolate, Zone* zone, HValue* context, |