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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 2668233002: Remove code supporting incremental compilation in dart2js (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/compile_time_constants.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index ccc2071305295908e9b9f3a874ad536f20773654..567eb9e7a57718737f9a0bbae46e0a9a75cc30c4 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -7,7 +7,6 @@ library dart2js.compiler_base;
import 'dart:async' show EventSink, Future;
import '../compiler_new.dart' as api;
-import 'cache_strategy.dart' show CacheStrategy;
import 'closure.dart' as closureMapping show ClosureTask;
import 'common/backend_api.dart' show Backend;
import 'common/names.dart' show Selectors;
@@ -100,8 +99,6 @@ abstract class Compiler implements LibraryLoaderListener {
CompilerResolution _resolution;
ParsingContext _parsingContext;
- final CacheStrategy cacheStrategy;
-
ImpactStrategy impactStrategy = const ImpactStrategy();
/**
@@ -203,7 +200,6 @@ abstract class Compiler implements LibraryLoaderListener {
MakeBackendFunction makeBackend,
MakeReporterFunction makeReporter})
: this.options = options,
- this.cacheStrategy = new CacheStrategy(options.hasIncrementalSupport),
this.userOutputProvider = outputProvider == null
? const NullCompilerOutput()
: outputProvider {
@@ -489,7 +485,7 @@ abstract class Compiler implements LibraryLoaderListener {
.add(selector);
}
- assert(uri != null || options.analyzeOnly || options.hasIncrementalSupport);
+ assert(uri != null || options.analyzeOnly);
return new Future.sync(() {
if (librariesToAnalyzeWhenRun != null) {
return Future.forEach(librariesToAnalyzeWhenRun, (libraryUri) {
@@ -1072,18 +1068,6 @@ abstract class Compiler implements LibraryLoaderListener {
return libraryUri;
}
- void forgetElement(Element element) {
- resolution.forgetElement(element);
- enqueuer.forgetEntity(element);
- if (element is MemberElement) {
- for (Element closure in element.nestedClosures) {
- // TODO(ahe): It would be nice to reuse names of nested closures.
- closureToClassMapper.forgetElement(closure);
- }
- }
- backend.forgetElement(element);
- }
-
/// Returns [true] if a compile-time error has been reported for element.
bool elementHasCompileTimeError(Element element) {
return elementsWithCompileTimeErrors.containsKey(element);
@@ -1923,12 +1907,6 @@ class CompilerResolution implements Resolution {
}
}
- @override
- void forgetElement(Element element) {
- _worldImpactCache.remove(element);
- _resolutionImpactCache.remove(element);
- }
-
ConstantValue _proxyConstant;
@override
« no previous file with comments | « pkg/compiler/lib/src/compile_time_constants.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698