Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 349be804973f3cc919d6780fb8e56edc1305a82a..5b0bfc353551004ad23760b81362a1d6ad4c2994 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2269,8 +2269,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
target->set_literals(*literals); |
target->set_next_function_link(isolate->heap()->undefined_value()); |
- if (isolate->logger()->is_logging_code_events() || |
- CpuProfiler::is_profiling(isolate)) { |
+ if (isolate->logger()->is_logging() || CpuProfiler::is_profiling(isolate)) { |
isolate->logger()->LogExistingFunction( |
source_shared, Handle<Code>(source_shared->code())); |
} |