| 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 '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; | 10 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 _compiler, | 98 _compiler, |
| 99 _elementMap, | 99 _elementMap, |
| 100 new KernelToTypeInferenceMapImpl(closedWorld), | 100 new KernelToTypeInferenceMapImpl(closedWorld), |
| 101 localsMap, | 101 localsMap, |
| 102 closedWorld, | 102 closedWorld, |
| 103 _compiler.codegenWorldBuilder, | 103 _compiler.codegenWorldBuilder, |
| 104 work.registry, | 104 work.registry, |
| 105 _compiler.backendStrategy.closureDataLookup, | 105 _compiler.backendStrategy.closureDataLookup, |
| 106 // TODO(redemption): Support these: | 106 // TODO(redemption): Support these: |
| 107 const SourceInformationBuilder(), | 107 const SourceInformationBuilder(), |
| 108 null, // Function node used as capture scope id. | 108 null); // Function node used as capture scope id. |
| 109 targetIsConstructorBody: false); | |
| 110 return builder.build(); | 109 return builder.build(); |
| 111 } | 110 } |
| 112 } | 111 } |
| 113 | 112 |
| 114 class KernelToTypeInferenceMapImpl implements KernelToTypeInferenceMap { | 113 class KernelToTypeInferenceMapImpl implements KernelToTypeInferenceMap { |
| 115 final ClosedWorld _closedWorld; | 114 final ClosedWorld _closedWorld; |
| 116 | 115 |
| 117 KernelToTypeInferenceMapImpl(this._closedWorld); | 116 KernelToTypeInferenceMapImpl(this._closedWorld); |
| 118 | 117 |
| 119 @override | 118 @override |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { | 235 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { |
| 237 return classes.toList() | 236 return classes.toList() |
| 238 ..sort((ClassEntity a, ClassEntity b) { | 237 ..sort((ClassEntity a, ClassEntity b) { |
| 239 int r = _compareLibraries(a.library, b.library); | 238 int r = _compareLibraries(a.library, b.library); |
| 240 if (r != 0) return r; | 239 if (r != 0) return r; |
| 241 return _compareNodes( | 240 return _compareNodes( |
| 242 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); | 241 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); |
| 243 }); | 242 }); |
| 244 } | 243 } |
| 245 } | 244 } |
| OLD | NEW |