Chromium Code Reviews| Index: lib/compiler/implementation/ssa/nodes.dart |
| =================================================================== |
| --- lib/compiler/implementation/ssa/nodes.dart (revision 8084) |
| +++ lib/compiler/implementation/ssa/nodes.dart (working copy) |
| @@ -661,6 +661,14 @@ |
| } |
| } |
| + void forEachInstruction(void f(HInstruction instruction)) { |
| + HInstruction current = first; |
| + while (current !== null) { |
|
Lasse Reichstein Nielsen
2012/05/30 09:35:14
A block must have a non-null first instruction (ri
ngeoffray
2012/05/30 10:19:07
It might be safer to keep it as-is in case one use
|
| + f(current); |
| + current = current.next; |
| + } |
| + } |
| + |
| bool isValid() { |
| assert(isClosed()); |
| HValidator validator = new HValidator(); |
| @@ -1664,6 +1672,7 @@ |
| class HTry extends HControlFlow { |
| HParameterValue exception; |
| + HBasicBlock catchBlock; |
| HBasicBlock finallyBlock; |
| HTry() : super(const <HInstruction>[]); |
| toString() => 'try'; |