| Index: src/x64/macro-assembler-x64.cc
|
| diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc
|
| index b38feb849e483a4cbea0a037771e7a31fd79c407..76491a331cebb03981e3788917c70bd5f33e66c6 100644
|
| --- a/src/x64/macro-assembler-x64.cc
|
| +++ b/src/x64/macro-assembler-x64.cc
|
| @@ -725,8 +725,9 @@ void MacroAssembler::CallApiFunctionAndReturn(Address function_address,
|
| if (FLAG_log_timer_events) {
|
| FrameScope frame(this, StackFrame::MANUAL);
|
| PushSafepointRegisters();
|
| - PrepareCallCFunction(0);
|
| - CallCFunction(ExternalReference::log_enter_external_function(isolate()), 0);
|
| + PrepareCallCFunction(1);
|
| + LoadAddress(arg_reg_1, ExternalReference::isolate_address(isolate()));
|
| + CallCFunction(ExternalReference::log_enter_external_function(isolate()), 1);
|
| PopSafepointRegisters();
|
| }
|
|
|
| @@ -738,8 +739,9 @@ void MacroAssembler::CallApiFunctionAndReturn(Address function_address,
|
| if (FLAG_log_timer_events) {
|
| FrameScope frame(this, StackFrame::MANUAL);
|
| PushSafepointRegisters();
|
| - PrepareCallCFunction(0);
|
| - CallCFunction(ExternalReference::log_leave_external_function(isolate()), 0);
|
| + PrepareCallCFunction(1);
|
| + LoadAddress(arg_reg_1, ExternalReference::isolate_address(isolate()));
|
| + CallCFunction(ExternalReference::log_leave_external_function(isolate()), 1);
|
| PopSafepointRegisters();
|
| }
|
|
|
|
|