| 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.dart'; | 10 import '../common.dart'; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 work.element, | 96 work.element, |
| 97 work.element.enclosingClass, | 97 work.element.enclosingClass, |
| 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 _compiler.backend.emitter.nativeEmitter, |
| 106 // TODO(redemption): Support these: | 107 // TODO(redemption): Support these: |
| 107 const SourceInformationBuilder(), | 108 const SourceInformationBuilder(), |
| 108 null); // Function node used as capture scope id. | 109 null); // Function node used as capture scope id. |
| 109 return builder.build(); | 110 return builder.build(); |
| 110 } | 111 } |
| 111 } | 112 } |
| 112 | 113 |
| 113 class KernelToTypeInferenceMapImpl implements KernelToTypeInferenceMap { | 114 class KernelToTypeInferenceMapImpl implements KernelToTypeInferenceMap { |
| 114 final ClosedWorld _closedWorld; | 115 final ClosedWorld _closedWorld; |
| 115 | 116 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 }); | 244 }); |
| 244 } | 245 } |
| 245 | 246 |
| 246 @override | 247 @override |
| 247 Iterable<TypedefEntity> sortTypedefs(Iterable<TypedefEntity> typedefs) { | 248 Iterable<TypedefEntity> sortTypedefs(Iterable<TypedefEntity> typedefs) { |
| 248 // TODO(redemption): Support this. | 249 // TODO(redemption): Support this. |
| 249 assert(typedefs.isEmpty); | 250 assert(typedefs.isEmpty); |
| 250 return typedefs; | 251 return typedefs; |
| 251 } | 252 } |
| 252 } | 253 } |
| OLD | NEW |