| Index: runtime/vm/compiler.cc
|
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
|
| index 0fba07c66b5cb81eb4f34cc270d03a5b62a02fd0..1b1ef1de8460b6855fd8075d2fb8b8a5d15118fe 100644
|
| --- a/runtime/vm/compiler.cc
|
| +++ b/runtime/vm/compiler.cc
|
| @@ -268,14 +268,11 @@ static bool CompileParsedFunctionHelper(ParsedFunction* parsed_function,
|
| ASSERT(function.HasCode());
|
| // Extract type feedback before the graph is built, as the graph
|
| // builder uses it to attach it to nodes.
|
| - // Do not use type feedback to optimize a function that was
|
| - // deoptimized too often.
|
| - if (function.deoptimization_counter() <
|
| - FLAG_deoptimization_counter_threshold) {
|
| - const Code& unoptimized_code =
|
| - Code::Handle(function.unoptimized_code());
|
| - ic_data_array = unoptimized_code.ExtractTypeFeedbackArray();
|
| - }
|
| + ASSERT(function.deoptimization_counter() <
|
| + FLAG_deoptimization_counter_threshold);
|
| + const Code& unoptimized_code =
|
| + Code::Handle(function.unoptimized_code());
|
| + ic_data_array = unoptimized_code.ExtractTypeFeedbackArray();
|
| }
|
|
|
| // Build the flow graph.
|
|
|