| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 16bed66fda226697f1239c2975666e91564e4d1d..ceb1158b07eafb4c9b1e385363042452039e4a9f 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -501,6 +501,10 @@ AstGraphBuilder::AstGraphBuilder(Zone* local_zone, CompilationInfo* info,
|
| frame_state_function_info_(common()->CreateFrameStateFunctionInfo(
|
| FrameStateType::kJavaScriptFunction, info->num_parameters() + 1,
|
| info->scope()->num_stack_slots(), info->shared_info())) {
|
| + // If --turbo-from-bytecode is enabled we should never construct a graph using
|
| + // the ASTGraphBuilder, except for functions which are never compiled to
|
| + // bytecode.
|
| + DCHECK(!(FLAG_turbo_from_bytecode && Compiler::ShouldUseIgnition(info)));
|
| InitializeAstVisitor(info->isolate());
|
| }
|
|
|
|
|