| Index: src/arm/stub-cache-arm.cc
|
| diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc
|
| index e4f3dcda69512cb578710044068927e50e195ec0..cf2d4e2064f8fade86711ac58a78bcd6f0b59b2e 100644
|
| --- a/src/arm/stub-cache-arm.cc
|
| +++ b/src/arm/stub-cache-arm.cc
|
| @@ -738,7 +738,7 @@ class CallInterceptorCompiler BASE_EMBEDDED {
|
| ? CALL_AS_FUNCTION
|
| : CALL_AS_METHOD;
|
| __ InvokeFunction(optimization.constant_function(), arguments_,
|
| - JUMP_FUNCTION, call_kind);
|
| + JUMP_FUNCTION, NullCallWrapper(), call_kind);
|
| }
|
|
|
| // Deferred code for fast API call case---clean preallocated space.
|
| @@ -1904,7 +1904,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, arguments(), JUMP_FUNCTION, CALL_AS_METHOD);
|
| + __ InvokeFunction(
|
| + function, arguments(), JUMP_FUNCTION, NullCallWrapper(), CALL_AS_METHOD);
|
|
|
| __ bind(&miss);
|
| // r2: function name.
|
| @@ -2049,7 +2050,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, arguments(), JUMP_FUNCTION, CALL_AS_METHOD);
|
| + __ InvokeFunction(
|
| + function, arguments(), JUMP_FUNCTION, NullCallWrapper(), CALL_AS_METHOD);
|
|
|
| __ bind(&miss);
|
| // r2: function name.
|
| @@ -2147,7 +2149,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, arguments(), JUMP_FUNCTION, CALL_AS_METHOD);
|
| + __ InvokeFunction(
|
| + function, arguments(), JUMP_FUNCTION, NullCallWrapper(), CALL_AS_METHOD);
|
|
|
| __ bind(&miss);
|
| // r2: function name.
|
| @@ -2325,7 +2328,8 @@ Handle<Code> CallStubCompiler::CompileCallConstant(Handle<Object> object,
|
| CallKind call_kind = CallICBase::Contextual::decode(extra_state_)
|
| ? CALL_AS_FUNCTION
|
| : CALL_AS_METHOD;
|
| - __ InvokeFunction(function, arguments(), JUMP_FUNCTION, call_kind);
|
| + __ InvokeFunction(
|
| + function, arguments(), JUMP_FUNCTION, NullCallWrapper(), call_kind);
|
|
|
| // Handle call cache miss.
|
| __ bind(&miss);
|
|
|