| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // Test that the ParalleMoveResolver in the VM uses valid registers | 5 // Test that the ParalleMoveResolver in the VM uses valid registers |
| 6 // when requiring scratch registers. | 6 // when requiring scratch registers. |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 // Iterate enough to ensure optimizing `spillingMethod`. | 9 // Iterate enough to ensure optimizing `spillingMethod`. |
| 10 for (int i = 0; i < 100000; i++) { | 10 for (int i = 0; i < 100000; i++) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 q = r; | 58 q = r; |
| 59 r = q; | 59 r = q; |
| 60 s = t; | 60 s = t; |
| 61 t = s; | 61 t = s; |
| 62 u = v; | 62 u = v; |
| 63 v = u; | 63 v = u; |
| 64 what++; | 64 what++; |
| 65 } | 65 } |
| 66 | 66 |
| 67 // Keep all variables alive. | 67 // Keep all variables alive. |
| 68 return a + b + c + d + e + f + g + h + i + j + k + l + m + n + o | 68 return a + |
| 69 + p + q + r + s + t + u + v; | 69 b + |
| 70 c + |
| 71 d + |
| 72 e + |
| 73 f + |
| 74 g + |
| 75 h + |
| 76 i + |
| 77 j + |
| 78 k + |
| 79 l + |
| 80 m + |
| 81 n + |
| 82 o + |
| 83 p + |
| 84 q + |
| 85 r + |
| 86 s + |
| 87 t + |
| 88 u + |
| 89 v; |
| 70 } | 90 } |
| OLD | NEW |