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

Side by Side Diff: pkg/compiler/lib/src/kernel/element_map.dart

Issue 2961563003: Hopefully the last bit of restructuring between closture classes and loop boxing, etc. (Closed)
Patch Set: Created 3 years, 5 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:js_runtime/shared/embedded_names.dart'; 5 import 'package:js_runtime/shared/embedded_names.dart';
6 import 'package:kernel/ast.dart' as ir; 6 import 'package:kernel/ast.dart' as ir;
7 7
8 import '../closure.dart'; 8 import '../closure.dart';
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart'; 10 import '../common/names.dart';
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 /// Call to notify that [member] is no longer being inlined. 1072 /// Call to notify that [member] is no longer being inlined.
1073 void leaveInlinedMember(covariant MemberEntity member); 1073 void leaveInlinedMember(covariant MemberEntity member);
1074 1074
1075 /// Returns the [Local] for [node]. 1075 /// Returns the [Local] for [node].
1076 Local getLocal(ir.VariableDeclaration node); 1076 Local getLocal(ir.VariableDeclaration node);
1077 1077
1078 /// Returns the [JumpTarget] for the branch in [node]. 1078 /// Returns the [JumpTarget] for the branch in [node].
1079 // TODO(johnniwinther): Split this by kind of [node]? 1079 // TODO(johnniwinther): Split this by kind of [node]?
1080 JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false}); 1080 JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false});
1081 1081
1082 /// Returns the [LoopClosureRepresentationInfo] for the loop [node] in 1082 /// Returns the [ClosureBase] for the loop [node] in [closureClassMaps].
1083 /// [closureClassMaps]. 1083 ClosureBase getClosureRepresentationInfoForLoop(
1084 LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop(
1085 ClosureDataLookup closureLookup, ir.TreeNode node); 1084 ClosureDataLookup closureLookup, ir.TreeNode node);
1086 } 1085 }
1087 1086
1088 /// Comparator for the canonical order or named arguments. 1087 /// Comparator for the canonical order or named arguments.
1089 // TODO(johnniwinther): Remove this when named parameters are sorted in dill. 1088 // TODO(johnniwinther): Remove this when named parameters are sorted in dill.
1090 int namedOrdering(ir.VariableDeclaration a, ir.VariableDeclaration b) { 1089 int namedOrdering(ir.VariableDeclaration a, ir.VariableDeclaration b) {
1091 return a.name.compareTo(b.name); 1090 return a.name.compareTo(b.name);
1092 } 1091 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698