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

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

Issue 239283003: Teaches the register allocator about a second assembler temporary. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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/flow_graph_allocator.cc ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/cha.h" 9 #include "vm/cha.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 blocked_registers[locs->out(0).reg()] = true; 946 blocked_registers[locs->out(0).reg()] = true;
947 } 947 }
948 948
949 // Do not allocate known registers. 949 // Do not allocate known registers.
950 blocked_registers[CTX] = true; 950 blocked_registers[CTX] = true;
951 blocked_registers[SPREG] = true; 951 blocked_registers[SPREG] = true;
952 blocked_registers[FPREG] = true; 952 blocked_registers[FPREG] = true;
953 if (TMP != kNoRegister) { 953 if (TMP != kNoRegister) {
954 blocked_registers[TMP] = true; 954 blocked_registers[TMP] = true;
955 } 955 }
956 if (TMP2 != kNoRegister) {
957 blocked_registers[TMP2] = true;
958 }
956 if (PP != kNoRegister) { 959 if (PP != kNoRegister) {
957 blocked_registers[PP] = true; 960 blocked_registers[PP] = true;
958 } 961 }
959 962
960 // Block all non-free registers. 963 // Block all non-free registers.
961 for (intptr_t i = 0; i < kFirstFreeCpuRegister; i++) { 964 for (intptr_t i = 0; i < kFirstFreeCpuRegister; i++) {
962 blocked_registers[i] = true; 965 blocked_registers[i] = true;
963 } 966 }
964 for (intptr_t i = kLastFreeCpuRegister + 1; i < kNumberOfCpuRegisters; i++) { 967 for (intptr_t i = kLastFreeCpuRegister + 1; i < kNumberOfCpuRegisters; i++) {
965 blocked_registers[i] = true; 968 blocked_registers[i] = true;
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 1286
1284 for (int i = 0; i < len; i++) { 1287 for (int i = 0; i < len; i++) {
1285 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), 1288 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i),
1286 &Function::ZoneHandle(ic_data.GetTargetAt(i)), 1289 &Function::ZoneHandle(ic_data.GetTargetAt(i)),
1287 ic_data.GetCountAt(i))); 1290 ic_data.GetCountAt(i)));
1288 } 1291 }
1289 sorted->Sort(HighestCountFirst); 1292 sorted->Sort(HighestCountFirst);
1290 } 1293 }
1291 1294
1292 } // namespace dart 1295 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698