Index: src/arm/lithium-arm.h |
diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h |
index f4df669179c1351509bd83bae687fbf4b43d9cb4..faae095d55aed6f0a698a3d077faf8f1ce23f767 100644 |
--- a/src/arm/lithium-arm.h |
+++ b/src/arm/lithium-arm.h |
@@ -1379,12 +1379,17 @@ class LCallNamed: public LTemplateInstruction<1, 0, 0> { |
}; |
-class LCallFunction: public LTemplateInstruction<1, 0, 0> { |
+class LCallFunction: public LTemplateInstruction<1, 1, 0> { |
public: |
+ explicit LCallFunction(LOperand* function) { |
+ inputs_[0] = function; |
+ } |
+ |
DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
- int arity() const { return hydrogen()->argument_count() - 2; } |
+ LOperand* function() { return inputs_[0]; } |
+ int arity() const { return hydrogen()->argument_count() - 1; } |
}; |