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

Unified Diff: runtime/vm/flow_graph_allocator.h

Issue 10826184: Move all register allocator environment initialization into class Environment. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_allocator.h
diff --git a/runtime/vm/flow_graph_allocator.h b/runtime/vm/flow_graph_allocator.h
index 2df90d8273f4b9779847e29b1d51034a944176a2..2792eaf9f1fa0a39f6ee436ad28c3703005bfb14 100644
--- a/runtime/vm/flow_graph_allocator.h
+++ b/runtime/vm/flow_graph_allocator.h
@@ -27,6 +27,9 @@ class FlowGraphAllocator : public ValueObject {
// Build live-in and live-out sets for each block.
void AnalyzeLiveness();
+ // Map a virtual register number to its live range.
+ LiveRange* GetLiveRange(intptr_t vreg);
+
private:
// Eliminate unnecessary environments from the IL.
void EliminateEnvironmentUses();
@@ -82,7 +85,6 @@ class FlowGraphAllocator : public ValueObject {
// optimal splitting position.
void DiscoverLoops();
- LiveRange* GetLiveRange(intptr_t vreg);
LiveRange* MakeLiveRangeForTemporary();
// Visit instructions in the postorder and build live ranges for
« no previous file with comments | « no previous file | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698