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

Unified Diff: runtime/vm/flow_graph.h

Issue 11953076: Move code around in preparation for better inlining. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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_builder.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 46b6a6e331abf1d7b107900e8f3103f4cae0416e..81edee2bc754875187924f45576c15b63bcf5bde 100644
--- a/runtime/vm/flow_graph.h
+++ b/runtime/vm/flow_graph.h
@@ -91,14 +91,16 @@ class FlowGraph : public ZoneAllocated {
}
intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; }
+ void set_current_ssa_temp_index(intptr_t index) {
+ current_ssa_temp_index_ = index;
+ }
intptr_t max_virtual_register_number() const {
return current_ssa_temp_index();
}
- intptr_t max_block_id() const {
- return max_block_id_;
- }
+ intptr_t max_block_id() const { return max_block_id_; }
+ void set_max_block_id(intptr_t id) { max_block_id_ = id; }
GraphEntryInstr* graph_entry() const {
return graph_entry_;
@@ -124,14 +126,13 @@ class FlowGraph : public ZoneAllocated {
// body blocks for each loop header.
void ComputeLoops(GrowableArray<BlockEntryInstr*>* loop_headers);
- void InlineCall(Definition* call,
- FlowGraph* callee_graph,
- ValueInliningContext* inlining_context);
void RepairGraphAfterInlining();
// TODO(zerny): Once the SSA is feature complete this should be removed.
void Bailout(const char* reason) const;
+ void InvalidateDominatorTree() { invalid_dominator_tree_ = true; }
+
#ifdef DEBUG
// Validation methods for debugging.
bool ResetUseLists();
« no previous file with comments | « no previous file | runtime/vm/flow_graph.cc » ('j') | runtime/vm/flow_graph_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698