Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index bbbe520738fe7a596f955513c6c15c26ce7f415e..b7cd3db046c066cb66e61f0342ecd3cfc018139d 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -2264,8 +2264,9 @@ void MacroAssembler::CallApiFunctionAndReturn(ExternalReference function, |
if (FLAG_log_timer_events) { |
FrameScope frame(this, StackFrame::MANUAL); |
PushSafepointRegisters(); |
- PrepareCallCFunction(0, r0); |
- CallCFunction(ExternalReference::log_enter_external_function(isolate()), 0); |
+ PrepareCallCFunction(1, r0); |
+ mov(r0, Operand(ExternalReference::isolate_address(isolate()))); |
+ CallCFunction(ExternalReference::log_enter_external_function(isolate()), 1); |
PopSafepointRegisters(); |
} |
@@ -2278,8 +2279,9 @@ void MacroAssembler::CallApiFunctionAndReturn(ExternalReference function, |
if (FLAG_log_timer_events) { |
FrameScope frame(this, StackFrame::MANUAL); |
PushSafepointRegisters(); |
- PrepareCallCFunction(0, r0); |
- CallCFunction(ExternalReference::log_leave_external_function(isolate()), 0); |
+ PrepareCallCFunction(1, r0); |
+ mov(r0, Operand(ExternalReference::isolate_address(isolate()))); |
+ CallCFunction(ExternalReference::log_leave_external_function(isolate()), 1); |
PopSafepointRegisters(); |
} |