| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 '../elements/elements.dart'; | 6 import '../elements/elements.dart'; |
| 7 import '../tree/tree.dart' as ast; | 7 import '../tree/tree.dart' as ast; |
| 8 | 8 |
| 9 import 'builder.dart'; | |
| 10 import 'graph_builder.dart'; | 9 import 'graph_builder.dart'; |
| 11 import 'locals_handler.dart'; | 10 import 'locals_handler.dart'; |
| 12 import 'nodes.dart'; | 11 import 'nodes.dart'; |
| 13 | 12 |
| 14 /// A single break/continue instruction. | 13 /// A single break/continue instruction. |
| 15 class _JumpHandlerEntry { | 14 class _JumpHandlerEntry { |
| 16 final HJump jumpInstruction; | 15 final HJump jumpInstruction; |
| 17 final LocalsHandler locals; | 16 final LocalsHandler locals; |
| 18 bool isBreak() => jumpInstruction is HBreak; | 17 bool isBreak() => jumpInstruction is HBreak; |
| 19 bool isContinue() => jumpInstruction is HContinue; | 18 bool isContinue() => jumpInstruction is HContinue; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 } | 224 } |
| 226 | 225 |
| 227 void close() { | 226 void close() { |
| 228 // The mapping from TargetElement to JumpHandler is no longer needed. | 227 // The mapping from TargetElement to JumpHandler is no longer needed. |
| 229 for (JumpTarget target in targetIndexMap.keys) { | 228 for (JumpTarget target in targetIndexMap.keys) { |
| 230 builder.jumpTargets.remove(target); | 229 builder.jumpTargets.remove(target); |
| 231 } | 230 } |
| 232 super.close(); | 231 super.close(); |
| 233 } | 232 } |
| 234 } | 233 } |
| OLD | NEW |