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

Unified Diff: runtime/vm/locations.h

Issue 11418135: Heuristically predict interference on the back edge and use it to minimize number of register reshu… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« runtime/vm/flow_graph_allocator.cc ('K') | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.h
diff --git a/runtime/vm/locations.h b/runtime/vm/locations.h
index 4522b1aba725967d89ab3c732c4990c6c7441332..0c2bc097b9212d1ffceddd5228490139274ed677 100644
--- a/runtime/vm/locations.h
+++ b/runtime/vm/locations.h
@@ -277,6 +277,12 @@ class Location : public ValueObject {
return value_ == other.value_;
}
+ // If current location is constant might return something that
+ // is not equal to any Kind.
+ Kind kind() const {
+ return KindField::decode(value_);
+ }
+
private:
explicit Location(uword value) : value_(value) { }
@@ -287,12 +293,6 @@ class Location : public ValueObject {
return PayloadField::decode(value_);
}
- // If current location is constant might return something that
- // is not equal to any Kind.
- Kind kind() const {
- return KindField::decode(value_);
- }
-
typedef BitField<Kind, 0, kBitsForKind> KindField;
typedef BitField<uword, kBitsForKind, kBitsForPayload> PayloadField;
« runtime/vm/flow_graph_allocator.cc ('K') | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698