Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index 4aa9a7cc695d70000de5d3c46f50528d7bca5587..0384d25215f6bdad1d7555968b504b58711cca4f 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -1992,7 +1992,8 @@ Handle<Code> CallStubCompiler::CompileStringFromCharCodeCall( |
CallKind call_kind = CallICBase::Contextual::decode(extra_state_) |
? CALL_AS_FUNCTION |
: CALL_AS_METHOD; |
- __ InvokeFunction(function, ParameterCount(function), arguments(), |
+ ParameterCount expected(function); |
+ __ InvokeFunction(function, expected, arguments(), |
JUMP_FUNCTION, NullCallWrapper(), call_kind); |
__ bind(&miss); |
@@ -2107,7 +2108,8 @@ Handle<Code> CallStubCompiler::CompileMathAbsCall( |
CallKind call_kind = CallICBase::Contextual::decode(extra_state_) |
? CALL_AS_FUNCTION |
: CALL_AS_METHOD; |
- __ InvokeFunction(function, ParameterCount(function), arguments(), |
+ ParameterCount expected(function); |
+ __ InvokeFunction(function, expected, arguments(), |
JUMP_FUNCTION, NullCallWrapper(), call_kind); |
__ bind(&miss); |
@@ -2291,7 +2293,8 @@ void CallStubCompiler::CompileHandlerBackend(Handle<JSFunction> function) { |
CallKind call_kind = CallICBase::Contextual::decode(extra_state_) |
? CALL_AS_FUNCTION |
: CALL_AS_METHOD; |
- __ InvokeFunction(function, ParameterCount(function), arguments(), |
+ ParameterCount expected(function); |
+ __ InvokeFunction(function, expected, arguments(), |
JUMP_FUNCTION, NullCallWrapper(), call_kind); |
} |