| 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
|
|
|