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

Side by Side Diff: pkg/compiler/lib/src/kernel/element_map.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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common/names.dart'; 9 import '../common/names.dart';
10 import '../constants/constructors.dart'; 10 import '../constants/constructors.dart';
11 import '../constants/expressions.dart'; 11 import '../constants/expressions.dart';
12 import '../constants/values.dart'; 12 import '../constants/values.dart';
13 import '../common_elements.dart'; 13 import '../common_elements.dart';
14 import '../elements/elements.dart' show JumpTarget;
15 import '../elements/entities.dart'; 14 import '../elements/entities.dart';
15 import '../elements/jumps.dart';
16 import '../elements/names.dart'; 16 import '../elements/names.dart';
17 import '../elements/operators.dart'; 17 import '../elements/operators.dart';
18 import '../elements/types.dart'; 18 import '../elements/types.dart';
19 import '../js_backend/backend.dart' show JavaScriptBackend; 19 import '../js_backend/backend.dart' show JavaScriptBackend;
20 import '../native/native.dart' as native; 20 import '../native/native.dart' as native;
21 import '../types/types.dart'; 21 import '../types/types.dart';
22 import '../universe/call_structure.dart'; 22 import '../universe/call_structure.dart';
23 import '../universe/selector.dart'; 23 import '../universe/selector.dart';
24 import '../world.dart'; 24 import '../world.dart';
25 import 'kernel_debug.dart'; 25 import 'kernel_debug.dart';
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 Local getLocal(ir.VariableDeclaration node); 1036 Local getLocal(ir.VariableDeclaration node);
1037 1037
1038 /// Returns the [JumpTarget] for the branch in [node]. 1038 /// Returns the [JumpTarget] for the branch in [node].
1039 // TODO(johnniwinther): Split this by kind of [node]? 1039 // TODO(johnniwinther): Split this by kind of [node]?
1040 JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false}); 1040 JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false});
1041 1041
1042 /// Returns the [ClosureScope] for the loop [node] in [cloureData]. 1042 /// Returns the [ClosureScope] for the loop [node] in [cloureData].
1043 ClosureScope getClosureScopeForLoop( 1043 ClosureScope getClosureScopeForLoop(
1044 ClosureClassMap closureData, ir.TreeNode node); 1044 ClosureClassMap closureData, ir.TreeNode node);
1045 } 1045 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer.dart ('k') | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698