| 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; | 5 import '../common.dart'; |
| 6 import '../compiler.dart' show Compiler; |
| 7 import '../js_backend/js_backend.dart'; |
| 8 |
| 9 import 'nodes.dart'; |
| 6 | 10 |
| 7 /** | 11 /** |
| 8 * The [LiveRange] class covers a range where an instruction is live. | 12 * The [LiveRange] class covers a range where an instruction is live. |
| 9 */ | 13 */ |
| 10 class LiveRange { | 14 class LiveRange { |
| 11 final int start; | 15 final int start; |
| 12 // [end] is not final because it can be updated due to loops. | 16 // [end] is not final because it can be updated due to loops. |
| 13 int end; | 17 int end; |
| 14 LiveRange(this.start, this.end) { | 18 LiveRange(this.start, this.end) { |
| 15 assert(start <= end); | 19 assert(start <= end); |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 if (!needsName(input)) { | 713 if (!needsName(input)) { |
| 710 names.addAssignment(predecessor, input, phi); | 714 names.addAssignment(predecessor, input, phi); |
| 711 } else { | 715 } else { |
| 712 names.addCopy(predecessor, input, phi); | 716 names.addCopy(predecessor, input, phi); |
| 713 } | 717 } |
| 714 } | 718 } |
| 715 | 719 |
| 716 namer.allocateName(phi); | 720 namer.allocateName(phi); |
| 717 } | 721 } |
| 718 } | 722 } |
| OLD | NEW |