| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |