Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 227234f273e5a050bd66dc48e86189404573c680..8ef8c538b4663e0931626b565f147f8c79afd50b 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -745,9 +745,13 @@ struct GraphBuilderPhase { |
bool succeeded = false; |
if (data->info()->is_optimizing_from_bytecode()) { |
- BytecodeGraphBuilder graph_builder(temp_zone, data->info(), |
- data->jsgraph(), 1.0f, |
- data->source_positions()); |
+ // Bytecode graph builder assumes deoptimziation is enabled. |
+ DCHECK(data->info()->is_deoptimization_enabled()); |
+ BytecodeGraphBuilder graph_builder( |
+ temp_zone, data->info()->shared_info(), |
+ handle(data->info()->closure()->feedback_vector()), |
+ data->info()->osr_ast_id(), data->jsgraph(), 1.0f, |
+ data->source_positions()); |
succeeded = graph_builder.CreateGraph(); |
} else { |
AstGraphBuilderWithPositions graph_builder( |