Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Side by Side Diff: pkg/compiler/lib/src/ssa/jump_handler.dart

Issue 2930293002: Parameterize and move JumpTarget/LabelDefition to elements/jumps.dart (Closed)
Patch Set: Fix Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/graph_builder.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698