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