| 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 library dart2js.kernel.backend_strategy; | 5 library dart2js.kernel.backend_strategy; |
| 6 | 6 |
| 7 import 'package:kernel/ast.dart' as ir; | 7 import 'package:kernel/ast.dart' as ir; |
| 8 | 8 |
| 9 import '../backend_strategy.dart'; | 9 import '../backend_strategy.dart'; |
| 10 import '../closure.dart'; | 10 import '../closure.dart'; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 return _closedWorld.commonMasks.dynamicType; | 172 return _closedWorld.commonMasks.dynamicType; |
| 173 } | 173 } |
| 174 | 174 |
| 175 @override | 175 @override |
| 176 bool isJsIndexableIterator( | 176 bool isJsIndexableIterator( |
| 177 ir.ForInStatement forInStatement, ClosedWorld closedWorld) { | 177 ir.ForInStatement forInStatement, ClosedWorld closedWorld) { |
| 178 return false; | 178 return false; |
| 179 } | 179 } |
| 180 | 180 |
| 181 @override | 181 @override |
| 182 bool isFixedLength(TypeMask mask, ClosedWorld closedWorld) { |
| 183 return false; |
| 184 } |
| 185 |
| 186 @override |
| 182 TypeMask typeOfIteratorMoveNext(ir.ForInStatement forInStatement) { | 187 TypeMask typeOfIteratorMoveNext(ir.ForInStatement forInStatement) { |
| 183 return _closedWorld.commonMasks.dynamicType; | 188 return _closedWorld.commonMasks.dynamicType; |
| 184 } | 189 } |
| 185 | 190 |
| 186 @override | 191 @override |
| 187 TypeMask typeOfIteratorCurrent(ir.ForInStatement forInStatement) { | 192 TypeMask typeOfIteratorCurrent(ir.ForInStatement forInStatement) { |
| 188 return _closedWorld.commonMasks.dynamicType; | 193 return _closedWorld.commonMasks.dynamicType; |
| 189 } | 194 } |
| 190 | 195 |
| 191 @override | 196 @override |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { | 281 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { |
| 277 return classes.toList() | 282 return classes.toList() |
| 278 ..sort((ClassEntity a, ClassEntity b) { | 283 ..sort((ClassEntity a, ClassEntity b) { |
| 279 int r = _compareLibraries(a.library, b.library); | 284 int r = _compareLibraries(a.library, b.library); |
| 280 if (r != 0) return r; | 285 if (r != 0) return r; |
| 281 return _compareNodes( | 286 return _compareNodes( |
| 282 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); | 287 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); |
| 283 }); | 288 }); |
| 284 } | 289 } |
| 285 } | 290 } |
| OLD | NEW |