Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 8b5731b2773f88d05941f37cc10dbd7d13571aee..4e4b347959aebdad87f71173cc352ffad25968bb 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -954,8 +954,9 @@ class CallInterceptorCompiler BASE_EMBEDDED { |
CallKind call_kind = CallICBase::Contextual::decode(extra_ic_state_) |
? CALL_AS_FUNCTION |
: CALL_AS_METHOD; |
- Handle<JSFunction> fun = optimization.constant_function(); |
- __ InvokeFunction(fun, ParameterCount(fun), arguments_, |
+ Handle<JSFunction> function = optimization.constant_function(); |
+ ParameterCount expected(function); |
+ __ InvokeFunction(function, expected, arguments_, |
JUMP_FUNCTION, NullCallWrapper(), call_kind); |
} |
@@ -2085,7 +2086,8 @@ Handle<Code> CallStubCompiler::CompileStringFromCharCodeCall( |
// Tail call the full function. We do not have to patch the receiver |
// because the function makes no use of it. |
__ bind(&slow); |
- __ InvokeFunction(function, ParameterCount(function), arguments(), |
+ ParameterCount expected(function); |
+ __ InvokeFunction(function, expected, arguments(), |
JUMP_FUNCTION, NullCallWrapper(), CALL_AS_METHOD); |
__ bind(&miss); |
@@ -2196,7 +2198,8 @@ Handle<Code> CallStubCompiler::CompileMathFloorCall( |
__ bind(&slow); |
// Tail call the full function. We do not have to patch the receiver |
// because the function makes no use of it. |
- __ InvokeFunction(function, ParameterCount(function), arguments(), |
+ ParameterCount expected(fun); |
+ __ InvokeFunction(function, expected, arguments(), |
JUMP_FUNCTION, NullCallWrapper(), CALL_AS_METHOD); |
__ bind(&miss); |
@@ -2295,7 +2298,8 @@ Handle<Code> CallStubCompiler::CompileMathAbsCall( |
// Tail call the full function. We do not have to patch the receiver |
// because the function makes no use of it. |
__ bind(&slow); |
- __ InvokeFunction(function, ParameterCount(function), arguments(), |
+ ParameterCount expected(function); |
+ __ InvokeFunction(function, expected, arguments(), |
JUMP_FUNCTION, NullCallWrapper(), CALL_AS_METHOD); |
__ bind(&miss); |
@@ -2470,7 +2474,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); |
} |