Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 4270d33424124f12eecc65adbfd7b41bd1930cc4..f41b34f4a311293158ef212c6bd2a73768942a42 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -2353,10 +2353,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(r9, Operand(reinterpret_cast<int32_t>(is_profiling_flag))); |
+ mov(r9, Operand(ExternalReference::is_profiling_address(isolate()))); |
ldrb(r9, MemOperand(r9, 0)); |
cmp(r9, Operand(0)); |
b(eq, &profiler_disabled); |