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

Unified Diff: runtime/vm/locations.cc

Issue 10399136: CTX and TMP registers may not be allocated. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/locations.cc
===================================================================
--- runtime/vm/locations.cc (revision 7882)
+++ runtime/vm/locations.cc (working copy)
@@ -25,10 +25,14 @@
void LocationSummary::AllocateRegisters() {
EmbeddedArray<bool, kNumberOfCpuRegisters> blocked_registers;
- // Mark all registers free.
+ // Mark all available registers free.
for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) {
blocked_registers[i] = false;
}
+ blocked_registers[CTX] = true;
+ if (TMP != kNoRegister) {
+ blocked_registers[TMP] = true;
+ }
// Mark all fixed registers as used.
for (intptr_t i = 0; i < count(); i++) {
« runtime/vm/intermediate_language_x64.cc ('K') | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698