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

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

Issue 1388523002: dart2js: add support for configuration-specific imports. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update and fix status files. Implement missing functions. Created 5 years 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
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7 import 'dart:async' show
8 EventSink, 8 EventSink,
9 Future; 9 Future;
10 10
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 this.preserveComments: false, 447 this.preserveComments: false,
448 this.useCpsIr: false, 448 this.useCpsIr: false,
449 this.useFrequencyNamer: false, 449 this.useFrequencyNamer: false,
450 this.verbose: false, 450 this.verbose: false,
451 this.sourceMapUri: null, 451 this.sourceMapUri: null,
452 this.outputUri: null, 452 this.outputUri: null,
453 this.buildId: UNDETERMINED_BUILD_ID, 453 this.buildId: UNDETERMINED_BUILD_ID,
454 this.deferredMapUri: null, 454 this.deferredMapUri: null,
455 this.dumpInfo: false, 455 this.dumpInfo: false,
456 bool useStartupEmitter: false, 456 bool useStartupEmitter: false,
457 bool enableConditionalDirectives: false,
457 this.useContentSecurityPolicy: false, 458 this.useContentSecurityPolicy: false,
458 bool hasIncrementalSupport: false, 459 bool hasIncrementalSupport: false,
459 this.enableExperimentalMirrors: false, 460 this.enableExperimentalMirrors: false,
460 this.enableAssertMessage: false, 461 this.enableAssertMessage: false,
461 this.allowNativeExtensions: false, 462 this.allowNativeExtensions: false,
462 this.generateCodeWithCompileTimeErrors: false, 463 this.generateCodeWithCompileTimeErrors: false,
463 this.testMode: false, 464 this.testMode: false,
464 DiagnosticOptions diagnosticOptions, 465 DiagnosticOptions diagnosticOptions,
465 api.CompilerOutput outputProvider, 466 api.CompilerOutput outputProvider,
466 List<String> strips: const []}) 467 List<String> strips: const []})
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 multiFile: dart2dartMultiFile); 509 multiFile: dart2dartMultiFile);
509 if (dumpInfo) { 510 if (dumpInfo) {
510 throw new ArgumentError('--dump-info is not supported for dart2dart.'); 511 throw new ArgumentError('--dump-info is not supported for dart2dart.');
511 } 512 }
512 } 513 }
513 514
514 tasks = [ 515 tasks = [
515 libraryLoader = new LibraryLoaderTask(this), 516 libraryLoader = new LibraryLoaderTask(this),
516 serialization = new SerializationTask(this), 517 serialization = new SerializationTask(this),
517 scanner = new ScannerTask(this), 518 scanner = new ScannerTask(this),
518 dietParser = new DietParserTask(this), 519 dietParser = new DietParserTask(
519 parser = new ParserTask(this), 520 this, enableConditionalDirectives: enableConditionalDirectives),
520 patchParser = new PatchParserTask(this), 521 parser = new ParserTask(
522 this, enableConditionalDirectives: enableConditionalDirectives),
523 patchParser = new PatchParserTask(
524 this, enableConditionalDirectives: enableConditionalDirectives),
521 resolver = new ResolverTask(this, backend.constantCompilerTask), 525 resolver = new ResolverTask(this, backend.constantCompilerTask),
522 closureToClassMapper = new closureMapping.ClosureTask(this), 526 closureToClassMapper = new closureMapping.ClosureTask(this),
523 checker = new TypeCheckerTask(this), 527 checker = new TypeCheckerTask(this),
524 typesTask = new ti.TypesTask(this), 528 typesTask = new ti.TypesTask(this),
525 constants = backend.constantCompilerTask, 529 constants = backend.constantCompilerTask,
526 deferredLoadTask = new DeferredLoadTask(this), 530 deferredLoadTask = new DeferredLoadTask(this),
527 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this), 531 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this),
528 enqueuer = new EnqueueTask(this), 532 enqueuer = new EnqueueTask(this),
529 dumpInfoTask = new DumpInfoTask(this), 533 dumpInfoTask = new DumpInfoTask(this),
530 reuseLibraryTask = new GenericTask('Reuse library', this), 534 reuseLibraryTask = new GenericTask('Reuse library', this),
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 if (_otherDependencies == null) { 2098 if (_otherDependencies == null) {
2095 _otherDependencies = new Setlet<Element>(); 2099 _otherDependencies = new Setlet<Element>();
2096 } 2100 }
2097 _otherDependencies.add(element.implementation); 2101 _otherDependencies.add(element.implementation);
2098 } 2102 }
2099 2103
2100 Iterable<Element> get otherDependencies { 2104 Iterable<Element> get otherDependencies {
2101 return _otherDependencies != null ? _otherDependencies : const <Element>[]; 2105 return _otherDependencies != null ? _otherDependencies : const <Element>[];
2102 } 2106 }
2103 } 2107 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698