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

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 340023003: Various caches for incremental compilation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 /// `true` if the last diagnostic was filtered, in which case the 594 /// `true` if the last diagnostic was filtered, in which case the
595 /// accompanying info message should be filtered as well. 595 /// accompanying info message should be filtered as well.
596 bool lastDiagnosticWasFiltered = false; 596 bool lastDiagnosticWasFiltered = false;
597 597
598 /// Map containing information about the warnings and hints that have been 598 /// Map containing information about the warnings and hints that have been
599 /// suppressed for each library. 599 /// suppressed for each library.
600 Map<Uri, SuppressionInfo> suppressedWarnings = <Uri, SuppressionInfo>{}; 600 Map<Uri, SuppressionInfo> suppressedWarnings = <Uri, SuppressionInfo>{};
601 601
602 final bool suppressWarnings; 602 final bool suppressWarnings;
603 603
604 /// If `true`, some values are cached for reuse in incremental compilation.
605 /// Incremental compilation is basically calling [run] more than once.
606 final bool hasIncrementalSupport;
607
604 api.CompilerOutputProvider outputProvider; 608 api.CompilerOutputProvider outputProvider;
605 609
606 bool disableInlining = false; 610 bool disableInlining = false;
607 611
608 /// True if compilation was aborted with a [CompilerCancelledException]. Only 612 /// True if compilation was aborted with a [CompilerCancelledException]. Only
609 /// set after Future retuned by [run] has completed. 613 /// set after Future retuned by [run] has completed.
610 bool compilerWasCancelled = false; 614 bool compilerWasCancelled = false;
611 615
612 List<Uri> librariesToAnalyzeWhenRun; 616 List<Uri> librariesToAnalyzeWhenRun;
613 617
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 this.verbose: false, 838 this.verbose: false,
835 this.sourceMapUri: null, 839 this.sourceMapUri: null,
836 this.outputUri: null, 840 this.outputUri: null,
837 this.buildId: UNDETERMINED_BUILD_ID, 841 this.buildId: UNDETERMINED_BUILD_ID,
838 this.terseDiagnostics: false, 842 this.terseDiagnostics: false,
839 this.disableDeferredLoading: false, 843 this.disableDeferredLoading: false,
840 this.dumpInfo: false, 844 this.dumpInfo: false,
841 this.showPackageWarnings: false, 845 this.showPackageWarnings: false,
842 this.useContentSecurityPolicy: false, 846 this.useContentSecurityPolicy: false,
843 this.suppressWarnings: false, 847 this.suppressWarnings: false,
848 this.hasIncrementalSupport: false,
844 outputProvider, 849 outputProvider,
845 List<String> strips: const []}) 850 List<String> strips: const []})
846 : this.disableTypeInferenceFlag = 851 : this.disableTypeInferenceFlag =
847 disableTypeInferenceFlag || !emitJavaScript, 852 disableTypeInferenceFlag || !emitJavaScript,
848 this.analyzeOnly = 853 this.analyzeOnly =
849 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag, 854 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag,
850 this.analyzeSignaturesOnly = analyzeSignaturesOnly, 855 this.analyzeSignaturesOnly = analyzeSignaturesOnly,
851 this.analyzeAllFlag = analyzeAllFlag, 856 this.analyzeAllFlag = analyzeAllFlag,
852 this.outputProvider = (outputProvider == null) 857 this.outputProvider = (outputProvider == null)
853 ? NullSink.outputProvider 858 ? NullSink.outputProvider
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 static NullSink outputProvider(String name, String extension) { 2002 static NullSink outputProvider(String name, String extension) {
1998 return new NullSink('$name.$extension'); 2003 return new NullSink('$name.$extension');
1999 } 2004 }
2000 } 2005 }
2001 2006
2002 /// Information about suppressed warnings and hints for a given library. 2007 /// Information about suppressed warnings and hints for a given library.
2003 class SuppressionInfo { 2008 class SuppressionInfo {
2004 int warnings = 0; 2009 int warnings = 0;
2005 int hints = 0; 2010 int hints = 0;
2006 } 2011 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698