Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 1c54fa5ba6464f7cc052bf5ee356ebb565635e8e..6237fc94d7d4e89a7bc1e50f0f7f6642401305cd 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -2393,8 +2393,10 @@ class HInvokeFunction FINAL : public HBinaryCall { |
int argument_count) |
: HBinaryCall(context, function, argument_count), |
known_function_(known_function) { |
- formal_parameter_count_ = known_function.is_null() |
- ? 0 : known_function->shared()->formal_parameter_count(); |
+ formal_parameter_count_ = |
+ known_function.is_null() |
+ ? 0 |
+ : known_function->shared()->internal_formal_parameter_count(); |
has_stack_check_ = !known_function.is_null() && |
(known_function->code()->kind() == Code::FUNCTION || |
known_function->code()->kind() == Code::OPTIMIZED_FUNCTION); |