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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 ResolvedUriTranslator uriTranslator, | 56 ResolvedUriTranslator uriTranslator, |
57 ScriptLoader scriptLoader, | 57 ScriptLoader scriptLoader, |
58 api.CompilerInput compilerInput, | 58 api.CompilerInput compilerInput, |
59 ElementScanner scriptScanner, | 59 ElementScanner scriptScanner, |
60 LibraryDeserializer deserializer, | 60 LibraryDeserializer deserializer, |
61 PatchResolverFunction patchResolverFunc, | 61 PatchResolverFunction patchResolverFunc, |
62 PatchParserTask patchParser, | 62 PatchParserTask patchParser, |
63 env.Environment environment, | 63 env.Environment environment, |
64 DiagnosticReporter reporter, | 64 DiagnosticReporter reporter, |
65 Measurer measurer) { | 65 Measurer measurer) { |
66 return new KernelLibraryLoaderTask( | 66 return new KernelLibraryLoaderTask(_options.platformConfigUri.resolve("."), |
67 _elementMap, compilerInput, reporter, measurer); | 67 _elementMap, compilerInput, reporter, measurer); |
68 } | 68 } |
69 | 69 |
70 @override | 70 @override |
71 ElementEnvironment get elementEnvironment => _elementMap.elementEnvironment; | 71 ElementEnvironment get elementEnvironment => _elementMap.elementEnvironment; |
72 | 72 |
73 @override | 73 @override |
74 CommonElements get commonElements => _elementMap.commonElements; | 74 CommonElements get commonElements => _elementMap.commonElements; |
75 | 75 |
76 DartTypes get dartTypes => _elementMap.types; | 76 DartTypes get dartTypes => _elementMap.types; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 int get preMirrorsMethodCount { | 228 int get preMirrorsMethodCount { |
229 // TODO(redemption): Implement this. | 229 // TODO(redemption): Implement this. |
230 return null; | 230 return null; |
231 } | 231 } |
232 | 232 |
233 @override | 233 @override |
234 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) { | 234 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) { |
235 // TODO(redemption): Implement this. | 235 // TODO(redemption): Implement this. |
236 } | 236 } |
237 } | 237 } |
OLD | NEW |