Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1134)

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 1758653003: Add source position information to profile (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698