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

Side by Side Diff: runtime/vm/locations.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/locations.h" 5 #include "vm/locations.h"
6 6
7 #include "vm/il_printer.h" 7 #include "vm/il_printer.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/flow_graph_compiler.h" 9 #include "vm/flow_graph_compiler.h"
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 case kUnallocated: 71 case kUnallocated:
72 switch (policy()) { 72 switch (policy()) {
73 case kAny: 73 case kAny:
74 return "A"; 74 return "A";
75 case kPrefersRegister: 75 case kPrefersRegister:
76 return "P"; 76 return "P";
77 case kRequiresRegister: 77 case kRequiresRegister:
78 return "R"; 78 return "R";
79 case kRequiresXmmRegister: 79 case kRequiresXmmRegister:
80 return "DR"; 80 return "DR";
81 case kWritableRegister:
82 return "WR";
81 case kSameAsFirstInput: 83 case kSameAsFirstInput:
82 return "0"; 84 return "0";
83 } 85 }
84 UNREACHABLE(); 86 UNREACHABLE();
85 default: 87 default:
86 ASSERT(IsConstant()); 88 ASSERT(IsConstant());
87 return "C"; 89 return "C";
88 } 90 }
89 return "?"; 91 return "?";
90 } 92 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 133
132 if (!out().IsInvalid()) { 134 if (!out().IsInvalid()) {
133 f->Print(" => "); 135 f->Print(" => ");
134 out().PrintTo(f); 136 out().PrintTo(f);
135 } 137 }
136 138
137 if (always_calls()) f->Print(" C"); 139 if (always_calls()) f->Print(" C");
138 } 140 }
139 141
140 } // namespace dart 142 } // namespace dart
OLDNEW
« 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