Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 86d36a6420b35ca74fb4a73e36d658d6f678e997..20a0db9813c19ee60c890d596f7eac12c1a2e670 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -900,7 +900,12 @@ struct TypedLoweringPhase { |
JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
data->common()); |
- JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); |
+ JSBuiltinReducer builtin_reducer( |
+ &graph_reducer, data->jsgraph(), |
+ data->info()->is_deoptimization_enabled() |
+ ? JSBuiltinReducer::kDeoptimizationEnabled |
+ : JSBuiltinReducer::kNoFlags, |
+ data->info()->dependencies()); |
MaybeHandle<LiteralsArray> literals_array = |
data->info()->is_native_context_specializing() |
? handle(data->info()->closure()->literals(), data->isolate()) |