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

Unified Diff: runtime/vm/flow_graph_inliner.h

Issue 1739963002: Remember token position where a function was inlined (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
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.h
diff --git a/runtime/vm/flow_graph_inliner.h b/runtime/vm/flow_graph_inliner.h
index c4d8ca21332dcf830dfc25ec6eda72bdbe5261d4..ade98b5db113a8b95dc7d8fcf20f336bbd7ae149 100644
--- a/runtime/vm/flow_graph_inliner.h
+++ b/runtime/vm/flow_graph_inliner.h
@@ -21,6 +21,7 @@ class FlowGraphInliner : ValueObject {
public:
FlowGraphInliner(FlowGraph* flow_graph,
GrowableArray<const Function*>* inline_id_to_function,
+ GrowableArray<TokenPosition>* inline_id_to_token_pos,
GrowableArray<intptr_t>* caller_inline_id,
bool use_speculative_inlining,
GrowableArray<intptr_t>* inlining_black_list);
@@ -35,7 +36,9 @@ class FlowGraphInliner : ValueObject {
bool AlwaysInline(const Function& function);
FlowGraph* flow_graph() const { return flow_graph_; }
- intptr_t NextInlineId(const Function& function, intptr_t caller_id);
+ intptr_t NextInlineId(const Function& function,
+ TokenPosition tp,
+ intptr_t caller_id);
bool trace_inlining() const { return trace_inlining_; }
@@ -54,6 +57,7 @@ class FlowGraphInliner : ValueObject {
FlowGraph* flow_graph_;
GrowableArray<const Function*>* inline_id_to_function_;
+ GrowableArray<TokenPosition>* inline_id_to_token_pos_;
GrowableArray<intptr_t>* caller_inline_id_;
const bool trace_inlining_;
const bool use_speculative_inlining_;
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698