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

Unified Diff: runtime/vm/intermediate_language.h

Issue 12079096: Make use lists into doubly-linked lists. (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
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 82fecfa0f5aa792d8b6f6f7d6ce969aaf40ae1be..d23d668c84dbf71f7aa50890a3d9039f3d2d919b 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -73,6 +73,7 @@ class Value : public ZoneAllocated {
public:
explicit Value(Definition* definition)
: definition_(definition),
+ previous_use_(NULL),
next_use_(NULL),
instruction_(NULL),
use_index_(-1),
@@ -81,6 +82,9 @@ class Value : public ZoneAllocated {
Definition* definition() const { return definition_; }
void set_definition(Definition* definition) { definition_ = definition; }
+ Value* previous_use() const { return previous_use_; }
+ void set_previous_use(Value* previous) { previous_use_ = previous; }
+
Value* next_use() const { return next_use_; }
void set_next_use(Value* next) { next_use_ = next; }
@@ -133,6 +137,7 @@ class Value : public ZoneAllocated {
private:
Definition* definition_;
+ Value* previous_use_;
Value* next_use_;
Instruction* instruction_;
intptr_t use_index_;

Powered by Google App Engine
This is Rietveld 408576698