Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index c0efe9f7ad36fd35d4d4014327ae2964731bb2bb..8422451eab7ede249947a69ce50344c4222b5425 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1683,9 +1683,7 @@ void MacroAssembler::CallApiFunctionAndReturn( |
Label profiler_disabled; |
Label end_profiler_check; |
- bool* is_profiling_flag = isolate()->cpu_profiler()->is_profiling_address(); |
- STATIC_ASSERT(sizeof(*is_profiling_flag) == 1); |
- Mov(x10, reinterpret_cast<uintptr_t>(is_profiling_flag)); |
+ Mov(x10, ExternalReference::is_profiling_address(isolate())); |
Ldrb(w10, MemOperand(x10)); |
Cbz(w10, &profiler_disabled); |
Mov(x3, thunk_ref); |