| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index db2a104c37d7b772dd97f6c2d23503e97a4af09f..8b34c9a2d44f2a88b02ad9228f129002df91080e 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -2210,6 +2210,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) {
|
| // are guaranteed to be in old space.
|
| target->set_literals(*literals, SKIP_WRITE_BARRIER);
|
| target->set_next_function_link(isolate->heap()->undefined_value());
|
| +
|
| + if (isolate->logger()->is_logging() || CpuProfiler::is_profiling(isolate)) {
|
| + isolate->logger()->LogExistingFunction(*shared, shared->code());
|
| + }
|
| }
|
|
|
| target->set_context(*context);
|
|
|