OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |