Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 373fab924473be686d89a747a7102d773b768e4b..5fe1f9dc5bcb33a93581e2f2ed100d58cfe5c5f0 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2364,7 +2364,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
target->set_literals(*literals); |
if (isolate->logger()->is_logging_code_events() || |
- CpuProfiler::is_profiling(isolate)) { |
+ isolate->cpu_profiler()->is_profiling()) { |
isolate->logger()->LogExistingFunction( |
source_shared, Handle<Code>(source_shared->code())); |
} |