Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 2c4dae5d4ee25f3f741c1586f4238150a28a2011..21ea25f121a99ffbe9e5d35e47234b6d6380d05c 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1134,7 +1134,7 @@ void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
// script name and line number. Check explicitly whether logging is |
// enabled as finding the line number is not free. |
if (info->isolate()->logger()->is_logging_code_events() || |
- info->isolate()->cpu_profiler()->is_profiling()) { |
+ CpuProfiler::is_profiling(info->isolate())) { |
Handle<Script> script = info->script(); |
Handle<Code> code = info->code(); |
if (*code == info->isolate()->builtins()->builtin(Builtins::kLazyCompile)) |