Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index e345666e9c1d28fff24fd75afc7ac2f8ff35d4a2..137c9f0b901b4fadbf99a3553a8674f08eff0376 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -3931,10 +3931,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); |
- li(t9, reinterpret_cast<int32_t>(is_profiling_flag)); |
+ li(t9, Operand(ExternalReference::is_profiling_address(isolate()))); |
lb(t9, MemOperand(t9, 0)); |
Branch(&profiler_disabled, eq, t9, Operand(zero_reg)); |