Index: src/ia32/lithium-ia32.h |
diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h |
index dbe54bddaf7cbbe8e6ffb24c511b1dc9423031c7..bcd5177ac37d668993cdcbbd339d40d164ad89eb 100644 |
--- a/src/ia32/lithium-ia32.h |
+++ b/src/ia32/lithium-ia32.h |
@@ -62,6 +62,7 @@ class LCodeGen; |
V(CallKnownGlobal) \ |
V(CallNamed) \ |
V(CallNew) \ |
+ V(CallNewArray) \ |
V(CallRuntime) \ |
V(CallStub) \ |
V(CheckFunction) \ |
@@ -1833,6 +1834,25 @@ class LCallNew: public LTemplateInstruction<1, 2, 0> { |
}; |
+class LCallNewArray: public LTemplateInstruction<1, 2, 0> { |
+ public: |
+ LCallNewArray(LOperand* context, LOperand* constructor) { |
+ inputs_[0] = context; |
+ inputs_[1] = constructor; |
+ } |
+ |
+ LOperand* context() { return inputs_[0]; } |
+ LOperand* constructor() { return inputs_[1]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(CallNewArray, "call-new-array") |
+ DECLARE_HYDROGEN_ACCESSOR(CallNewArray) |
+ |
+ virtual void PrintDataTo(StringStream* stream); |
+ |
+ int arity() const { return hydrogen()->argument_count() - 1; } |
+}; |
+ |
+ |
class LCallRuntime: public LTemplateInstruction<1, 1, 0> { |
public: |
explicit LCallRuntime(LOperand* context) { |