Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index e0069f81ac8d8137070379f7a525f2515d04da8a..158df6eb74553b240567192a23aa6a01570c2b92 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -592,12 +592,7 @@ bool AstNumberingVisitor::Renumber(FunctionLiteral* node) { |
} |
if (IsGeneratorFunction(node->kind()) || IsAsyncFunction(node->kind())) { |
- // Generators can be optimized if --turbo-from-bytecode is set. |
- if (FLAG_turbo_from_bytecode) { |
- DisableCrankshaft(kGenerator); |
- } else { |
- DisableOptimization(kGenerator); |
- } |
+ DisableCrankshaft(kGenerator); |
} |
if (IsClassConstructor(node->kind())) { |