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

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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 JumpTarget getJumpTargetForFor(ir.ForStatement node); 1105 JumpTarget getJumpTargetForFor(ir.ForStatement node);
1106 1106
1107 /// Returns the [JumpTarget] defined by the for-in statement [node] or `null` 1107 /// Returns the [JumpTarget] defined by the for-in statement [node] or `null`
1108 /// if [node] is not a jump target. 1108 /// if [node] is not a jump target.
1109 JumpTarget getJumpTargetForForIn(ir.ForInStatement node); 1109 JumpTarget getJumpTargetForForIn(ir.ForInStatement node);
1110 1110
1111 /// Returns the [JumpTarget] defined by the while statement [node] or `null` 1111 /// Returns the [JumpTarget] defined by the while statement [node] or `null`
1112 /// if [node] is not a jump target. 1112 /// if [node] is not a jump target.
1113 JumpTarget getJumpTargetForWhile(ir.WhileStatement node); 1113 JumpTarget getJumpTargetForWhile(ir.WhileStatement node);
1114 1114
1115 /// Returns the [LoopClosureRepresentationInfo] for the loop [node] in 1115 /// Returns the [LoopClosureScope] for the loop [node] in [closureClassMaps].
1116 /// [closureClassMaps]. 1116 LoopClosureScope getLoopClosureScope(
1117 LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop(
1118 ClosureDataLookup closureLookup, ir.TreeNode node); 1117 ClosureDataLookup closureLookup, ir.TreeNode node);
1119 } 1118 }
1120 1119
1121 /// Comparator for the canonical order or named arguments. 1120 /// Comparator for the canonical order or named arguments.
1122 // TODO(johnniwinther): Remove this when named parameters are sorted in dill. 1121 // TODO(johnniwinther): Remove this when named parameters are sorted in dill.
1123 int namedOrdering(ir.VariableDeclaration a, ir.VariableDeclaration b) { 1122 int namedOrdering(ir.VariableDeclaration a, ir.VariableDeclaration b) {
1124 return a.name.compareTo(b.name); 1123 return a.name.compareTo(b.name);
1125 } 1124 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/closure.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