Index: src/optimizing-compile-dispatcher.cc |
diff --git a/src/optimizing-compile-dispatcher.cc b/src/optimizing-compile-dispatcher.cc |
index 1acb54996f1c52cae8105a19a7537512a3d2b417..ed202242bad28715258a6291ce68ddeaf5b5b862 100644 |
--- a/src/optimizing-compile-dispatcher.cc |
+++ b/src/optimizing-compile-dispatcher.cc |
@@ -198,9 +198,7 @@ void OptimizingCompileDispatcher::InstallOptimizedFunctions() { |
} |
DisposeOptimizedCompileJob(job, false); |
} else { |
- MaybeHandle<Code> code = Compiler::GetConcurrentlyOptimizedCode(job); |
- function->ReplaceCode(code.is_null() ? function->shared()->code() |
- : *code.ToHandleChecked()); |
+ Compiler::FinalizeOptimizedCompileJob(job); |
} |
} |
} |