| Index: src/runtime/runtime-compiler.cc
|
| diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc
|
| index c9be2008cd9c3bdd6d67220379ef65903b2515b8..37484f379d4d87bebf5f9d2985c4d4b730d41f64 100644
|
| --- a/src/runtime/runtime-compiler.cc
|
| +++ b/src/runtime/runtime-compiler.cc
|
| @@ -361,12 +361,7 @@ RUNTIME_FUNCTION(Runtime_CompileForOnStackReplacement) {
|
| // match. Fix heuristics for reenabling optimizations!
|
| function->shared()->increment_deopt_count();
|
|
|
| - if (result->is_turbofanned()) {
|
| - // TurboFanned OSR code cannot be installed into the function.
|
| - // But the function is obviously hot, so optimize it next time.
|
| - function->ReplaceCode(
|
| - isolate->builtins()->builtin(Builtins::kCompileOptimized));
|
| - } else {
|
| + if (!result->is_turbofanned()) {
|
| // Crankshafted OSR code can be installed into the function.
|
| function->ReplaceCode(*result);
|
| }
|
|
|