Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index 40f55909713831bc93ef95066e799c944cabb765..54d2a113a73724fa39b79b10aad72b503ff9f356 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -623,7 +623,8 @@ class CallInterceptorCompiler BASE_EMBEDDED { |
? CALL_AS_FUNCTION |
: CALL_AS_METHOD; |
Handle<JSFunction> fun = optimization.constant_function(); |
- __ InvokeFunction(fun, ParameterCount(fun), arguments_, |
+ ParameterCount expected(fun); |
+ __ InvokeFunction(fun, expected, arguments_, |
JUMP_FUNCTION, NullCallWrapper(), call_kind); |
} |