Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index cb812642842c87aae945048874cab7cc827ee889..d70824aa4af157d7321c97ae7615b46440c2fb31 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12247,14 +12247,6 @@ void JSFunction::AttemptConcurrentOptimization() { |
MarkForOptimization(); |
return; |
} |
- if (isolate->concurrent_osr_enabled() && |
- isolate->optimizing_compile_dispatcher()->IsQueuedForOSR(this)) { |
- // Do not attempt regular recompilation if we already queued this for OSR. |
- // TODO(yangguo): This is necessary so that we don't install optimized |
- // code on a function that is already optimized, since OSR and regular |
- // recompilation race. This goes away as soon as OSR becomes one-shot. |
- return; |
- } |
DCHECK(!IsInOptimizationQueue()); |
DCHECK(!IsOptimized()); |
DCHECK(shared()->allows_lazy_compilation() || |