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

Unified Diff: sdk/lib/_internal/pub/lib/src/entrypoint.dart

Issue 559833004: Cache snapshots of (mostly) immutable transformer phases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 3 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
Index: sdk/lib/_internal/pub/lib/src/entrypoint.dart
diff --git a/sdk/lib/_internal/pub/lib/src/entrypoint.dart b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
index fddd024bc91455c2ae15042c14d184d764ea4355..468345911fee436c389564330e3a41a62502be4c 100644
--- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart
+++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
@@ -144,6 +144,9 @@ class Entrypoint {
/// have to reload and reparse all the pubspecs.
return loadPackageGraph(result);
}).then((packageGraph) {
+ packageGraph.loadTransformerCache()
+ .clearIfOutdated(result.changedPackages);
+
return precompileExecutables(changed: result.changedPackages)
.catchError((error, stackTrace) {
// Just log exceptions here. Since the method is just about acquiring

Powered by Google App Engine
This is Rietveld 408576698