Chromium Code Reviews| Index: runtime/vm/compiler.cc |
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc |
| index 103792a44df86dc6a3c4d750a61f933f00561e66..10fa13a0c3576ed31e25646aaa2a4b37f1855e07 100644 |
| --- a/runtime/vm/compiler.cc |
| +++ b/runtime/vm/compiler.cc |
| @@ -601,8 +601,12 @@ bool CompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) { |
| if (optimized()) { |
| // Extract type feedback before the graph is built, as the graph |
| // builder uses it to attach it to nodes. |
| - ASSERT(function.deoptimization_counter() < |
| - FLAG_max_deoptimization_counter_threshold); |
| + |
| + // In background compilation the deoptimization counter may have |
| + // already reached the limit. |
| + ASSERT(Compiler::IsBackgroundCompilation() || |
| + function.deoptimization_counter() < |
| + FLAG_max_deoptimization_counter_threshold); |
|
siva
2016/02/17 23:12:48
maybe put parenthesis around (function.dep....() <
srdjan
2016/02/17 23:32:29
Done.
|
| // 'Freeze' ICData in background compilation so that it does not |
| // change while compiling. |