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