Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index c037a81116b085a380132598700e41270ce13ba8..853c2c76eaad16d943eec2953ff060dd016fd898 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -5312,11 +5312,8 @@ void CallApiFunctionStub::Generate(MacroAssembler* masm) { |
__ Stp(x10, xzr, MemOperand(x0, 2 * 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, |
- isolate()); |
+ ExternalReference thunk_ref = |
+ ExternalReference::invoke_function_callback(isolate()); |
AllowExternalCallThatCantCauseGC scope(masm); |
MemOperand context_restore_operand( |
@@ -5369,12 +5366,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, |
- isolate()); |
+ ExternalReference thunk_ref = |
+ ExternalReference::invoke_accessor_getter_callback(isolate()); |
const int spill_offset = 1 + kApiStackSpace; |
__ CallApiFunctionAndReturn(api_function_address, |