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

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

Issue 1464773002: Remove WorldImpact from caches when no longer needed. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Make deferred uncaching global. Created 5 years, 1 month 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 | « no previous file | pkg/compiler/lib/src/common/codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/backend_api.dart
diff --git a/pkg/compiler/lib/src/common/backend_api.dart b/pkg/compiler/lib/src/common/backend_api.dart
index ff49bcc14e03f2940696f79dbbb5feaf189ea33a..d2fa5ec96cc6139b48bad64caf247adb783a6ad7 100644
--- a/pkg/compiler/lib/src/common/backend_api.dart
+++ b/pkg/compiler/lib/src/common/backend_api.dart
@@ -60,6 +60,7 @@ import '../tree/tree.dart' show
import '../universe/call_structure.dart' show
CallStructure;
import '../universe/world_impact.dart' show
+ ImpactStrategy,
WorldImpact;
import 'codegen.dart' show
@@ -424,6 +425,13 @@ abstract class Backend {
///
/// Returns null if there is none.
Uri resolvePatchUri(String libraryName, Uri plaformConfigUri);
+
+ /// Creates an impact strategy to use for compilation.
+ ImpactStrategy createImpactStrategy(
+ {bool supportDeferredLoad: true,
+ bool supportDumpInfo: true}) {
+ return const ImpactStrategy();
+ }
}
/// Interface for resolving calls to foreign functions.
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698