| Index: src/compiler/pipeline.cc
|
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
|
| index 4118e1dfad77d0466f40c74a84a2f06f5e42fcfb..e74c9fba71af7778a4f04ae5ccd220a5aec41c86 100644
|
| --- a/src/compiler/pipeline.cc
|
| +++ b/src/compiler/pipeline.cc
|
| @@ -546,7 +546,10 @@ struct JSTypeFeedbackPhase {
|
| // specializing to the global object here.
|
| JSTypeFeedbackSpecializer specializer(
|
| &graph_reducer, data->jsgraph(), data->js_type_feedback(), &oracle,
|
| - global_object, data->info()->dependencies());
|
| + global_object, data->info()->is_deoptimization_enabled()
|
| + ? JSTypeFeedbackSpecializer::kDeoptimizationEnabled
|
| + : JSTypeFeedbackSpecializer::kDeoptimizationDisabled,
|
| + data->info()->dependencies());
|
| AddReducer(data, &graph_reducer, &specializer);
|
| graph_reducer.ReduceGraph();
|
| }
|
| @@ -1048,9 +1051,7 @@ Handle<Code> Pipeline::GenerateCode() {
|
| RunPrintAndVerify("OSR deconstruction");
|
| }
|
|
|
| - // TODO(turbofan): Type feedback currently requires deoptimization.
|
| - if (info()->is_deoptimization_enabled() &&
|
| - info()->is_type_feedback_enabled()) {
|
| + if (info()->is_type_feedback_enabled()) {
|
| Run<JSTypeFeedbackPhase>();
|
| RunPrintAndVerify("JSType feedback");
|
| }
|
|
|