Index: src/runtime/runtime-function.cc |
diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc |
index 1d0ac7aee282ce74f9a90bf07e5c0fcdfd29d589..a78e1a7f89ecf2e67eca57e955e2312f7588cd92 100644 |
--- a/src/runtime/runtime-function.cc |
+++ b/src/runtime/runtime-function.cc |
@@ -10,7 +10,6 @@ |
#include "src/frames-inl.h" |
#include "src/isolate-inl.h" |
#include "src/messages.h" |
-#include "src/profiler/cpu-profiler.h" |
#include "src/wasm/wasm-module.h" |
namespace v8 { |
@@ -215,8 +214,7 @@ RUNTIME_FUNCTION(Runtime_SetCode) { |
// the target_shared optimized code map. |
JSFunction::EnsureLiterals(target); |
- if (isolate->logger()->is_logging_code_events() || |
- isolate->cpu_profiler()->is_profiling()) { |
+ if (isolate->logger()->is_logging_code_events() || isolate->is_profiling()) { |
isolate->logger()->LogExistingFunction( |
source_shared, Handle<AbstractCode>(source_shared->abstract_code())); |
} |