| 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.frontend_strategy; | 5 library dart2js.kernel.frontend_strategy; |
| 6 | 6 |
| 7 import '../../compiler_new.dart' as api; | 7 import '../../compiler_new.dart' as api; |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../common_elements.dart'; | 9 import '../common_elements.dart'; |
| 10 import '../common/backend_api.dart'; | 10 import '../common/backend_api.dart'; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 CompilerOptions _options; | 45 CompilerOptions _options; |
| 46 KernelToElementMapForImpactImpl _elementMap; | 46 KernelToElementMapForImpactImpl _elementMap; |
| 47 | 47 |
| 48 KernelAnnotationProcessor _annotationProcesser; | 48 KernelAnnotationProcessor _annotationProcesser; |
| 49 | 49 |
| 50 final Map<MemberEntity, ClosureModel> closureModels = | 50 final Map<MemberEntity, ClosureModel> closureModels = |
| 51 <MemberEntity, ClosureModel>{}; | 51 <MemberEntity, ClosureModel>{}; |
| 52 | 52 |
| 53 KernelFrontEndStrategy( | 53 KernelFrontEndStrategy( |
| 54 this._options, DiagnosticReporter reporter, env.Environment environment) { | 54 this._options, DiagnosticReporter reporter, env.Environment environment) { |
| 55 _elementMap = | 55 _elementMap = new KernelToElementMapForImpactImpl( |
| 56 new KernelToElementMapForImpactImpl(reporter, environment, this); | 56 reporter, environment, this, _options); |
| 57 } | 57 } |
| 58 | 58 |
| 59 @override | 59 @override |
| 60 LibraryLoaderTask createLibraryLoader( | 60 LibraryLoaderTask createLibraryLoader( |
| 61 ResolvedUriTranslator uriTranslator, | 61 ResolvedUriTranslator uriTranslator, |
| 62 ScriptLoader scriptLoader, | 62 ScriptLoader scriptLoader, |
| 63 api.CompilerInput compilerInput, | 63 api.CompilerInput compilerInput, |
| 64 ElementScanner scriptScanner, | 64 ElementScanner scriptScanner, |
| 65 LibraryDeserializer deserializer, | 65 LibraryDeserializer deserializer, |
| 66 PatchResolverFunction patchResolverFunc, | 66 PatchResolverFunction patchResolverFunc, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 int get preMirrorsMethodCount { | 243 int get preMirrorsMethodCount { |
| 244 // TODO(redemption): Implement this. | 244 // TODO(redemption): Implement this. |
| 245 return null; | 245 return null; |
| 246 } | 246 } |
| 247 | 247 |
| 248 @override | 248 @override |
| 249 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) { | 249 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) { |
| 250 // TODO(redemption): Implement this. | 250 // TODO(redemption): Implement this. |
| 251 } | 251 } |
| 252 } | 252 } |
| OLD | NEW |