| 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 library tree_ir_tracer; | 5 library tree_ir_tracer; |
| 6 | 6 |
| 7 import 'dart:async' show EventSink; | 7 import 'dart:async' show EventSink; |
| 8 |
| 8 import '../tracer.dart'; | 9 import '../tracer.dart'; |
| 9 import 'tree_ir_nodes.dart'; | 10 import 'tree_ir_nodes.dart'; |
| 10 | 11 |
| 11 class Block { | 12 class Block { |
| 12 Label label; | 13 Label label; |
| 13 int index; | 14 int index; |
| 14 | 15 |
| 15 /// Mixed list of [Statement] and [Block]. | 16 /// Mixed list of [Statement] and [Block]. |
| 16 /// A [Block] represents a synthetic goto statement. | 17 /// A [Block] represents a synthetic goto statement. |
| 17 final List statements = []; | 18 final List statements = []; |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 String prefix = v.element == null ? 'v' : '${v.element.name}_'; | 612 String prefix = v.element == null ? 'v' : '${v.element.name}_'; |
| 612 while (name == null || _usedNames.contains(name)) { | 613 while (name == null || _usedNames.contains(name)) { |
| 613 name = "$prefix${_counter++}"; | 614 name = "$prefix${_counter++}"; |
| 614 } | 615 } |
| 615 _names[v] = name; | 616 _names[v] = name; |
| 616 _usedNames.add(name); | 617 _usedNames.add(name); |
| 617 } | 618 } |
| 618 return name; | 619 return name; |
| 619 } | 620 } |
| 620 } | 621 } |
| OLD | NEW |