| 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'; |
| 11 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; | 11 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; |
| 12 import '../common/tasks.dart'; | 12 import '../common/tasks.dart'; |
| 13 import '../compiler.dart'; | 13 import '../compiler.dart'; |
| 14 import '../elements/elements.dart' show JumpTarget; | |
| 15 import '../elements/entities.dart'; | 14 import '../elements/entities.dart'; |
| 16 import '../elements/entity_utils.dart' as utils; | 15 import '../elements/entity_utils.dart' as utils; |
| 16 import '../elements/jumps.dart'; |
| 17 import '../enqueue.dart'; | 17 import '../enqueue.dart'; |
| 18 import '../io/source_information.dart'; | 18 import '../io/source_information.dart'; |
| 19 import '../js/js_source_mapping.dart'; | 19 import '../js/js_source_mapping.dart'; |
| 20 import '../js_backend/backend.dart'; | 20 import '../js_backend/backend.dart'; |
| 21 import '../js_backend/native_data.dart'; | 21 import '../js_backend/native_data.dart'; |
| 22 import '../js_emitter/sorter.dart'; | 22 import '../js_emitter/sorter.dart'; |
| 23 import '../kernel/element_map.dart'; | 23 import '../kernel/element_map.dart'; |
| 24 import '../kernel/element_map_impl.dart'; | 24 import '../kernel/element_map_impl.dart'; |
| 25 import '../native/behavior.dart'; | 25 import '../native/behavior.dart'; |
| 26 import '../options.dart'; | 26 import '../options.dart'; |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { | 374 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { |
| 375 return classes.toList() | 375 return classes.toList() |
| 376 ..sort((ClassEntity a, ClassEntity b) { | 376 ..sort((ClassEntity a, ClassEntity b) { |
| 377 int r = _compareLibraries(a.library, b.library); | 377 int r = _compareLibraries(a.library, b.library); |
| 378 if (r != 0) return r; | 378 if (r != 0) return r; |
| 379 return _compareNodes( | 379 return _compareNodes( |
| 380 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); | 380 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); |
| 381 }); | 381 }); |
| 382 } | 382 } |
| 383 } | 383 } |
| OLD | NEW |