Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 6e0734d594c84fe5f7a144ca7b785d2cc6825c6b..c193bb30fdd935a4e810e378128d7a2007f94589 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -818,9 +818,9 @@ void MacroAssembler::CallApiFunctionAndReturn(Address function_address, |
movq(Operand(base_reg, kLimitOffset), prev_limit_reg); |
movq(prev_limit_reg, rax); |
#ifdef _WIN64 |
- LoadAddress(rcx, ExternalReference::isolate_address()); |
+ LoadAddress(rcx, ExternalReference::isolate_address(isolate())); |
#else |
- LoadAddress(rdi, ExternalReference::isolate_address()); |
+ LoadAddress(rdi, ExternalReference::isolate_address(isolate())); |
#endif |
LoadAddress(rax, |
ExternalReference::delete_handle_scope_extensions(isolate())); |