Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 21ea25f121a99ffbe9e5d35e47234b6d6380d05c..2c4dae5d4ee25f3f741c1586f4238150a28a2011 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() || |
- CpuProfiler::is_profiling(info->isolate())) { |
+ info->isolate()->cpu_profiler()->is_profiling()) { |
Handle<Script> script = info->script(); |
Handle<Code> code = info->code(); |
if (*code == info->isolate()->builtins()->builtin(Builtins::kLazyCompile)) |