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

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
« no previous file with comments | « runtime/vm/constants_ia32.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
===================================================================
--- runtime/vm/locations.cc (revision 7882)
+++ runtime/vm/locations.cc (working copy)
@@ -25,7 +25,7 @@
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;
}
@@ -39,6 +39,12 @@
}
}
+ // Do not allocate known registers.
+ blocked_registers[CTX] = true;
+ if (TMP != kNoRegister) {
+ blocked_registers[TMP] = true;
+ }
+
// Allocate all unallocated input locations.
for (intptr_t i = 0; i < count(); i++) {
Location loc = in(i);
« no previous file with comments | « runtime/vm/constants_ia32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698