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

Unified Diff: runtime/vm/flow_graph.h

Issue 11092102: Avoid rediscovering blocks on each call to FlowGraph::InlineCall. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update for review comments. Created 8 years, 2 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 | « no previous file | runtime/vm/flow_graph.cc » ('j') | runtime/vm/flow_graph.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.h
diff --git a/runtime/vm/flow_graph.h b/runtime/vm/flow_graph.h
index 8b28b718cb0038a2973cd4fe7cd28779dce35c25..4f53fccc2025a683654102c90174ecbe4cdb748d 100644
--- a/runtime/vm/flow_graph.h
+++ b/runtime/vm/flow_graph.h
@@ -113,6 +113,7 @@ class FlowGraph : public ZoneAllocated {
void ComputeLoops(GrowableArray<BlockEntryInstr*>* loop_headers);
void InlineCall(Definition* call, FlowGraph* callee_graph);
+ void RepairGraphAfterInlining();
// TODO(zerny): Once the SSA is feature complete this should be removed.
void Bailout(const char* reason) const;
@@ -150,6 +151,8 @@ class FlowGraph : public ZoneAllocated {
void MarkLivePhis(GrowableArray<PhiInstr*>* live_phis);
+ void ReplaceBlock(BlockEntryInstr* old_block, BlockEntryInstr* new_block);
+
// DiscoverBlocks computes parent_ and assigned_vars_ which are then used
// if/when computing SSA.
GrowableArray<intptr_t> parent_;
@@ -168,6 +171,7 @@ class FlowGraph : public ZoneAllocated {
GrowableArray<BlockEntryInstr*> postorder_;
GrowableArray<BlockEntryInstr*> reverse_postorder_;
ZoneGrowableArray<ReturnInstr*>* exits_;
+ bool invalid_dominator_tree_;
};
} // namespace dart
« no previous file with comments | « no previous file | runtime/vm/flow_graph.cc » ('j') | runtime/vm/flow_graph.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698