diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc index 3e34f267eb..da49f8550f 100644 --- a/src/ast/ast-numbering.cc +++ b/src/ast/ast-numbering.cc @@ -714,7 +714,7 @@ bool AstNumberingVisitor::Renumber(FunctionLiteral* node) { node->set_dont_optimize_reason(dont_optimize_reason()); node->set_suspend_count(suspend_count_); - if (FLAG_trace_opt) { + if (FLAG_trace_opt && !FLAG_turbo) { if (disable_crankshaft_reason_ != kNoReason) { // TODO(leszeks): This is a quick'n'dirty fix to allow the debug name of // the function to be accessed in the below print. This DCHECK will fail