| Index: src/compiler.h
|
| diff --git a/src/compiler.h b/src/compiler.h
|
| index b1e96391788e8a031fdda22e3843b24648cb3021..6a24fe2e0dc693e495749560d49ea6ddc686bd5b 100644
|
| --- a/src/compiler.h
|
| +++ b/src/compiler.h
|
| @@ -487,7 +487,8 @@ class CompilationInfo {
|
| if (GetFlag(kDisableFutureOptimization) && has_shared_info()) {
|
| // If Crankshaft tried to optimize this function, bailed out, and
|
| // doesn't want to try again, then use TurboFan next time.
|
| - if (!shared_info()->dont_crankshaft()) {
|
| + if (!shared_info()->dont_crankshaft() &&
|
| + bailout_reason() != kOptimizedTooManyTimes) {
|
| shared_info()->set_dont_crankshaft(true);
|
| if (FLAG_trace_opt) {
|
| PrintF("[disabled Crankshaft for ");
|
|
|