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

Unified Diff: runtime/vm/locations.cc

Issue 10800037: New linear scan allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Kevin's comments Created 8 years, 5 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/locations.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.cc
diff --git a/runtime/vm/locations.cc b/runtime/vm/locations.cc
index b64760192c1237bf57ddfd54cbd5600e81669fb4..ba8d24bcbd39d312e940fea7fb6cf5c09d118056 100644
--- a/runtime/vm/locations.cc
+++ b/runtime/vm/locations.cc
@@ -43,15 +43,20 @@ LocationSummary* LocationSummary::Make(intptr_t input_count,
const char* Location::Name() const {
switch (kind()) {
case kInvalid: return "?";
- case kSpillSlot: return "S";
case kRegister: return Assembler::RegisterName(reg());
+ case kSpillSlot: return "S";
case kUnallocated:
switch (policy()) {
+ case kAny:
+ return "A";
+ case kPrefersRegister:
+ return "P";
case kRequiresRegister:
return "R";
case kSameAsFirstInput:
return "0";
}
+ UNREACHABLE();
default:
ASSERT(IsConstant());
return "C";
« no previous file with comments | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698