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

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 12335102: Compile and simulate first dart function on arm generated from ast. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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/disassembler_arm.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_allocator.cc
===================================================================
--- runtime/vm/flow_graph_allocator.cc (revision 19151)
+++ runtime/vm/flow_graph_allocator.cc (working copy)
@@ -78,10 +78,21 @@
cpu_spill_slot_count_(0) {
for (intptr_t i = 0; i < vreg_count_; i++) live_ranges_.Add(NULL);
+ // All registers are marked as "not blocked" (array initialized to false).
+ // Mark the unavailable ones as "blocked" (true).
+ for (intptr_t i = 0; i < kFirstFreeCpuRegister; i++) {
+ blocked_cpu_registers_[i] = true;
+ }
+ for (intptr_t i = kLastFreeCpuRegister + 1; i < kNumberOfCpuRegisters; i++) {
+ blocked_cpu_registers_[i] = true;
+ }
blocked_cpu_registers_[CTX] = true;
if (TMP != kNoRegister) {
blocked_cpu_registers_[TMP] = true;
}
+ if (PP != kNoRegister) {
+ blocked_cpu_registers_[PP] = true;
+ }
blocked_cpu_registers_[SPREG] = true;
blocked_cpu_registers_[FPREG] = true;
« no previous file with comments | « runtime/vm/disassembler_arm.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698