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

Unified Diff: runtime/vm/locations.h

Issue 10909169: Add support for WritableRegister policy in the register allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't use non-volatile EBX in a test Created 8 years, 3 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/intermediate_language_x64.cc ('k') | runtime/vm/locations.cc » ('j') | 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 b77deacbd637c476854633a0c657b4e5eb7f7bfb..2e8fc9c2a01e968630e7541a685a2295f3db20e0 100644
--- a/runtime/vm/locations.h
+++ b/runtime/vm/locations.h
@@ -96,12 +96,12 @@ class Location : public ValueObject {
}
// Unallocated locations.
- // TODO(vegorov): writable register policy?
enum Policy {
kAny,
kPrefersRegister,
kRequiresRegister,
kRequiresXmmRegister,
+ kWritableRegister,
kSameAsFirstInput,
};
@@ -134,6 +134,10 @@ class Location : public ValueObject {
return UnallocatedLocation(kRequiresXmmRegister);
}
+ static Location WritableRegister() {
+ return UnallocatedLocation(kWritableRegister);
+ }
+
// The location of the first input to the instruction will be
// used to replace this unallocated location.
static Location SameAsFirstInput() {
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698