| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index 1d94e70b659ff147955fd17afcd2a6530c01025d..9e187104809b17f88f2467d96ac1ecde10ad42e6 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -5328,11 +5328,8 @@ void CallApiFunctionStub::Generate(MacroAssembler* masm) {
|
| __ sw(zero_reg, MemOperand(a0, 3 * kPointerSize));
|
|
|
| const int kStackUnwindSpace = argc + FCA::kArgsLength + 1;
|
| - Address thunk_address = FUNCTION_ADDR(&InvokeFunctionCallback);
|
| - ExternalReference::Type thunk_type = ExternalReference::PROFILING_API_CALL;
|
| - ApiFunction thunk_fun(thunk_address);
|
| - ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type,
|
| - masm->isolate());
|
| + ExternalReference thunk_ref =
|
| + ExternalReference::invoke_function_callback(isolate());
|
|
|
| AllowExternalCallThatCantCauseGC scope(masm);
|
| MemOperand context_restore_operand(
|
| @@ -5378,12 +5375,8 @@ void CallApiGetterStub::Generate(MacroAssembler* masm) {
|
|
|
| const int kStackUnwindSpace = PropertyCallbackArguments::kArgsLength + 1;
|
|
|
| - Address thunk_address = FUNCTION_ADDR(&InvokeAccessorGetterCallback);
|
| - ExternalReference::Type thunk_type =
|
| - ExternalReference::PROFILING_GETTER_CALL;
|
| - ApiFunction thunk_fun(thunk_address);
|
| - ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type,
|
| - masm->isolate());
|
| + ExternalReference thunk_ref =
|
| + ExternalReference::invoke_accessor_getter_callback(isolate());
|
| __ CallApiFunctionAndReturn(api_function_address,
|
| thunk_ref,
|
| kStackUnwindSpace,
|
|
|