OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.compiler_base; | 5 library dart2js.compiler_base; |
6 | 6 |
7 import 'dart:async' show EventSink, Future; | 7 import 'dart:async' show EventSink, Future; |
8 | 8 |
9 import '../compiler_new.dart' as api; | 9 import '../compiler_new.dart' as api; |
10 import 'cache_strategy.dart' show CacheStrategy; | 10 import 'cache_strategy.dart' show CacheStrategy; |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 throw new ArgumentError( | 333 throw new ArgumentError( |
334 '--dump-info is not supported with the fast startup emitter'); | 334 '--dump-info is not supported with the fast startup emitter'); |
335 } | 335 } |
336 | 336 |
337 tasks = [ | 337 tasks = [ |
338 dietParser = | 338 dietParser = |
339 new DietParserTask(options, idGenerator, backend, reporter, measurer), | 339 new DietParserTask(options, idGenerator, backend, reporter, measurer), |
340 scanner = createScannerTask(), | 340 scanner = createScannerTask(), |
341 serialization = new SerializationTask(this), | 341 serialization = new SerializationTask(this), |
342 libraryLoader = new LibraryLoaderTask( | 342 libraryLoader = new LibraryLoaderTask( |
343 this, | 343 resolvedUriTranslator, |
344 this.resolvedUriTranslator, | |
345 new _ScriptLoader(this), | 344 new _ScriptLoader(this), |
346 new _ElementScanner(scanner), | 345 new _ElementScanner(scanner), |
347 this.serialization, | 346 serialization, |
348 this, | 347 this, |
349 environment), | 348 environment, |
| 349 reporter, |
| 350 measurer), |
350 parser = new ParserTask(this, options), | 351 parser = new ParserTask(this, options), |
351 patchParser = new PatchParserTask(this, options), | 352 patchParser = new PatchParserTask(this, options), |
352 resolver = createResolverTask(), | 353 resolver = createResolverTask(), |
353 closureToClassMapper = new closureMapping.ClosureTask(this), | 354 closureToClassMapper = new closureMapping.ClosureTask(this), |
354 checker = new TypeCheckerTask(this), | 355 checker = new TypeCheckerTask(this), |
355 typesTask = new ti.TypesTask(this), | 356 typesTask = new ti.TypesTask(this), |
356 constants = backend.constantCompilerTask, | 357 constants = backend.constantCompilerTask, |
357 deferredLoadTask = new DeferredLoadTask(this), | 358 deferredLoadTask = new DeferredLoadTask(this), |
358 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this), | 359 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this), |
359 enqueuer = backend.makeEnqueuer(), | 360 enqueuer = backend.makeEnqueuer(), |
(...skipping 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2108 _ElementScanner(this.scanner); | 2109 _ElementScanner(this.scanner); |
2109 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); | 2110 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); |
2110 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); | 2111 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); |
2111 } | 2112 } |
2112 | 2113 |
2113 class _EmptyEnvironment implements Environment { | 2114 class _EmptyEnvironment implements Environment { |
2114 const _EmptyEnvironment(); | 2115 const _EmptyEnvironment(); |
2115 | 2116 |
2116 String valueOf(String key) => null; | 2117 String valueOf(String key) => null; |
2117 } | 2118 } |
OLD | NEW |