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/jumps.dart'; |
7 import '../tree/tree.dart' as ast; | 7 import '../tree/tree.dart' as ast; |
8 | 8 |
9 import 'graph_builder.dart'; | 9 import 'graph_builder.dart'; |
10 import 'locals_handler.dart'; | 10 import 'locals_handler.dart'; |
11 import 'nodes.dart'; | 11 import 'nodes.dart'; |
12 | 12 |
13 /// A single break/continue instruction. | 13 /// A single break/continue instruction. |
14 class _JumpHandlerEntry { | 14 class _JumpHandlerEntry { |
15 final HJump jumpInstruction; | 15 final HJump jumpInstruction; |
16 final LocalsHandler locals; | 16 final LocalsHandler locals; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 targetIndexMap[continueTarget] = switchIndex; | 231 targetIndexMap[continueTarget] = switchIndex; |
232 assert(builder.jumpTargets[continueTarget] == null); | 232 assert(builder.jumpTargets[continueTarget] == null); |
233 builder.jumpTargets[continueTarget] = this; | 233 builder.jumpTargets[continueTarget] = this; |
234 } | 234 } |
235 } | 235 } |
236 } | 236 } |
237 switchIndex++; | 237 switchIndex++; |
238 } | 238 } |
239 } | 239 } |
240 } | 240 } |
OLD | NEW |