Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: pkg/compiler/lib/src/kernel/kernel_strategy.dart

Issue 2989453002: Add support for compiling Dart via the FE in dart2js. (Closed)
Patch Set: update status Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 '../common.dart'; 8 import '../common.dart';
8 import '../common_elements.dart'; 9 import '../common_elements.dart';
9 import '../common/backend_api.dart'; 10 import '../common/backend_api.dart';
10 import '../common/resolution.dart'; 11 import '../common/resolution.dart';
11 import '../common/tasks.dart'; 12 import '../common/tasks.dart';
12 import '../common/work.dart'; 13 import '../common/work.dart';
13 import '../elements/elements.dart'; 14 import '../elements/elements.dart';
14 import '../elements/entities.dart'; 15 import '../elements/entities.dart';
15 import '../elements/types.dart'; 16 import '../elements/types.dart';
16 import '../environment.dart' as env; 17 import '../environment.dart' as env;
(...skipping 30 matching lines...) Expand all
47 48
48 KernelFrontEndStrategy( 49 KernelFrontEndStrategy(
49 this._options, DiagnosticReporter reporter, env.Environment environment) 50 this._options, DiagnosticReporter reporter, env.Environment environment)
50 : _elementMap = 51 : _elementMap =
51 new KernelToElementMapForImpactImpl(reporter, environment); 52 new KernelToElementMapForImpactImpl(reporter, environment);
52 53
53 @override 54 @override
54 LibraryLoaderTask createLibraryLoader( 55 LibraryLoaderTask createLibraryLoader(
55 ResolvedUriTranslator uriTranslator, 56 ResolvedUriTranslator uriTranslator,
56 ScriptLoader scriptLoader, 57 ScriptLoader scriptLoader,
58 api.CompilerInput compilerInput,
57 ElementScanner scriptScanner, 59 ElementScanner scriptScanner,
58 LibraryDeserializer deserializer, 60 LibraryDeserializer deserializer,
59 PatchResolverFunction patchResolverFunc, 61 PatchResolverFunction patchResolverFunc,
60 PatchParserTask patchParser, 62 PatchParserTask patchParser,
61 env.Environment environment, 63 env.Environment environment,
62 DiagnosticReporter reporter, 64 DiagnosticReporter reporter,
63 Measurer measurer) { 65 Measurer measurer) {
64 return new DillLibraryLoaderTask( 66 return new KernelLibraryLoaderTask(
65 _elementMap, uriTranslator, scriptLoader, reporter, measurer); 67 _elementMap, compilerInput, reporter, measurer);
66 } 68 }
67 69
68 @override 70 @override
69 ElementEnvironment get elementEnvironment => _elementMap.elementEnvironment; 71 ElementEnvironment get elementEnvironment => _elementMap.elementEnvironment;
70 72
71 @override 73 @override
72 CommonElements get commonElements => _elementMap.commonElements; 74 CommonElements get commonElements => _elementMap.commonElements;
73 75
74 DartTypes get dartTypes => _elementMap.types; 76 DartTypes get dartTypes => _elementMap.types;
75 77
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 int get preMirrorsMethodCount { 228 int get preMirrorsMethodCount {
227 // TODO(redemption): Implement this. 229 // TODO(redemption): Implement this.
228 return null; 230 return null;
229 } 231 }
230 232
231 @override 233 @override
232 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) { 234 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses) {
233 // TODO(redemption): Implement this. 235 // TODO(redemption): Implement this.
234 } 236 }
235 } 237 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698