Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 214db695224523eeba1f7195244da478a17fe570..a8d40cd9f7cf8da94165740afbf0e2049cd4bde9 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -505,15 +505,11 @@ struct NativeContextSpecializationPhase { |
data->common()); |
CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
data->common(), data->machine()); |
- JSGlobalSpecialization::Flags flags = JSGlobalSpecialization::kNoFlags; |
- if (data->info()->is_deoptimization_enabled()) { |
- flags |= JSGlobalSpecialization::kDeoptimizationEnabled; |
- } |
- if (data->info()->is_typing_enabled()) { |
- flags |= JSGlobalSpecialization::kTypingEnabled; |
- } |
JSGlobalSpecialization global_specialization( |
- &graph_reducer, data->jsgraph(), flags, |
+ &graph_reducer, data->jsgraph(), |
+ data->info()->is_deoptimization_enabled() |
+ ? JSGlobalSpecialization::kDeoptimizationEnabled |
+ : JSGlobalSpecialization::kNoFlags, |
handle(data->info()->global_object(), data->isolate()), |
data->info()->dependencies()); |
AddReducer(data, &graph_reducer, &dead_code_elimination); |