| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 @override | 324 @override |
| 325 ClosureAnalysisInfo getClosureAnalysisInfo(ir.Node node) { | 325 ClosureAnalysisInfo getClosureAnalysisInfo(ir.Node node) { |
| 326 return const ClosureAnalysisInfo(); | 326 return const ClosureAnalysisInfo(); |
| 327 } | 327 } |
| 328 | 328 |
| 329 @override | 329 @override |
| 330 LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop( | 330 LoopClosureRepresentationInfo getClosureRepresentationInfoForLoop( |
| 331 ir.Node loopNode) { | 331 ir.Node loopNode) { |
| 332 return const LoopClosureRepresentationInfo(); | 332 return const LoopClosureRepresentationInfo(); |
| 333 } | 333 } |
| 334 |
| 335 @override |
| 336 ClosureRepresentationInfo getClosureRepresentationInfo(Entity entity) { |
| 337 return const ClosureRepresentationInfo(); |
| 338 } |
| 334 } | 339 } |
| 335 | 340 |
| 336 class KernelSorter implements Sorter { | 341 class KernelSorter implements Sorter { |
| 337 final KernelToElementMapImpl elementMap; | 342 final KernelToElementMapImpl elementMap; |
| 338 | 343 |
| 339 KernelSorter(this.elementMap); | 344 KernelSorter(this.elementMap); |
| 340 | 345 |
| 341 int _compareLibraries(LibraryEntity a, LibraryEntity b) { | 346 int _compareLibraries(LibraryEntity a, LibraryEntity b) { |
| 342 return utils.compareLibrariesUris(a.canonicalUri, b.canonicalUri); | 347 return utils.compareLibrariesUris(a.canonicalUri, b.canonicalUri); |
| 343 } | 348 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 373 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { | 378 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { |
| 374 return classes.toList() | 379 return classes.toList() |
| 375 ..sort((ClassEntity a, ClassEntity b) { | 380 ..sort((ClassEntity a, ClassEntity b) { |
| 376 int r = _compareLibraries(a.library, b.library); | 381 int r = _compareLibraries(a.library, b.library); |
| 377 if (r != 0) return r; | 382 if (r != 0) return r; |
| 378 return _compareNodes( | 383 return _compareNodes( |
| 379 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); | 384 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); |
| 380 }); | 385 }); |
| 381 } | 386 } |
| 382 } | 387 } |
| OLD | NEW |