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