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

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

Issue 2939033002: Towards compiling Hello World! (Closed)
Patch Set: Fix parameter ordering 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';
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 1036
1037 /// Returns the [JumpTarget] for the branch in [node]. 1037 /// Returns the [JumpTarget] for the branch in [node].
1038 // TODO(johnniwinther): Split this by kind of [node]? 1038 // TODO(johnniwinther): Split this by kind of [node]?
1039 JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false}); 1039 JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false});
1040 1040
1041 /// Returns the [LoopClosureRepresentationInfo] for the loop [node] in 1041 /// Returns the [LoopClosureRepresentationInfo] for the loop [node] in
1042 /// [closureClassMaps]. 1042 /// [closureClassMaps].
1043 LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop( 1043 LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop(
1044 ClosureDataLookup closureLookup, ir.TreeNode node); 1044 ClosureDataLookup closureLookup, ir.TreeNode node);
1045 } 1045 }
1046
1047 /// Comparator for the canonical order or named arguments.
1048 // TODO(johnniwinther): Remove this when named parameters are sorted in dill.
1049 int namedOrdering(ir.VariableDeclaration a, ir.VariableDeclaration b) {
1050 return a.name.compareTo(b.name);
1051 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698