Chromium Code Reviews| Index: runtime/vm/flow_graph_inliner.cc |
| diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc |
| index 95a1c9f1ec9930594f013ac7fb9fb1f2b8dc308e..da9234a87db7a8ac4c486fa76f717455919006bc 100644 |
| --- a/runtime/vm/flow_graph_inliner.cc |
| +++ b/runtime/vm/flow_graph_inliner.cc |
| @@ -1960,8 +1960,10 @@ intptr_t FlowGraphInliner::NextInlineId(const Function& function, |
| ASSERT(tp.IsReal() || tp.IsSynthetic() || tp.IsNoSource()); |
| inline_id_to_function_->Add(&function); |
| inline_id_to_token_pos_->Add(tp); |
| - ASSERT(inline_id_to_token_pos_->length() == inline_id_to_function_->length()); |
| caller_inline_id_->Add(parent_id); |
| + // We always have one less token position than function. |
| + ASSERT(inline_id_to_token_pos_->length() == |
|
srdjan
2016/03/02 19:02:55
s/function/functions/
Cutch
2016/03/02 19:14:07
Done.
|
| + (inline_id_to_function_->length() - 1)); |
| return id; |
| } |