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

Unified Diff: runtime/vm/intermediate_language.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 | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 4648fc57e91a64e70323efe19e34471d01b3a515..c1aaa821190990582aaf4612f5bb4a3015e1a284 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -43,6 +43,7 @@ RECOGNIZED_LIST(DEFINE_ENUM_LIST)
class BitVector;
+class FlowGraphAllocator;
class FlowGraphCompiler;
class FlowGraphVisitor;
class Function;
@@ -2690,13 +2691,12 @@ class Environment : public ZoneAllocated {
return values_;
}
- void InitializeLocations() {
- location_count_ = values_.length();
- if (location_count_ > 0) {
- locations_ =
- Isolate::Current()->current_zone()->Alloc<Location>(location_count_);
- }
- }
+ // Initialize locations for the environment values on behalf of the
+ // register allocator. The initial live ranges of environment uses extend
+ // from the block start position to the environment position.
+ void InitializeLocations(FlowGraphAllocator* allocator,
+ intptr_t block_start_pos,
+ intptr_t environment_pos);
Location LocationAt(intptr_t ix) const {
ASSERT((ix >= 0) && (ix < location_count_));
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698