Index: src/x64/lithium-x64.h |
diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h |
index 32292b625946a0c04f03c20854ef5eba17d31279..29938832cfe05fd88126fb7550f20b2ca88601cb 100644 |
--- a/src/x64/lithium-x64.h |
+++ b/src/x64/lithium-x64.h |
@@ -1374,14 +1374,17 @@ class LCallNamed: public LTemplateInstruction<1, 0, 0> { |
}; |
-class LCallFunction: public LTemplateInstruction<1, 0, 0> { |
+class LCallFunction: public LTemplateInstruction<1, 1, 0> { |
public: |
- LCallFunction() {} |
+ 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; } |
}; |