| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of ssa; |
| 6 |
| 5 /** | 7 /** |
| 6 * The [LiveRange] class covers a range where an instruction is live. | 8 * The [LiveRange] class covers a range where an instruction is live. |
| 7 */ | 9 */ |
| 8 class LiveRange { | 10 class LiveRange { |
| 9 final int start; | 11 final int start; |
| 10 // [end] is not final because it can be updated due to loops. | 12 // [end] is not final because it can be updated due to loops. |
| 11 int end; | 13 int end; |
| 12 LiveRange(this.start, this.end) { | 14 LiveRange(this.start, this.end) { |
| 13 assert(start <= end); | 15 assert(start <= end); |
| 14 } | 16 } |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 if (!needsName(input)) { | 652 if (!needsName(input)) { |
| 651 names.addAssignment(predecessor, input, phi); | 653 names.addAssignment(predecessor, input, phi); |
| 652 } else { | 654 } else { |
| 653 names.addCopy(predecessor, input, phi); | 655 names.addCopy(predecessor, input, phi); |
| 654 } | 656 } |
| 655 } | 657 } |
| 656 | 658 |
| 657 namer.allocateName(phi); | 659 namer.allocateName(phi); |
| 658 } | 660 } |
| 659 } | 661 } |
| OLD | NEW |