Chromium Code Reviews| Index: pkg/dart2js_incremental/lib/caching_compiler.dart |
| diff --git a/pkg/dart2js_incremental/lib/caching_compiler.dart b/pkg/dart2js_incremental/lib/caching_compiler.dart |
| index 181f405e3782c877863ff2e997fbf49c3caba00e..caeec288f60b613bbcf57b936abd5a514d591745 100644 |
| --- a/pkg/dart2js_incremental/lib/caching_compiler.dart |
| +++ b/pkg/dart2js_incremental/lib/caching_compiler.dart |
| @@ -130,15 +130,9 @@ Compiler reuseCompiler( |
| backend |
| ..preMirrorsMethodCount = 0; |
| - Map libraries = new Map.from(compiler.libraries); |
| - compiler.libraries.clear(); |
| - compiler.libraryLoader.reset(); |
| - libraries.forEach((String uri, LibraryElement library) { |
| - if (library.isPlatformLibrary || |
| - (packagesAreImmutable && library.isPackageLibrary)) { |
| - compiler.libraries[uri] = library; |
| - compiler.libraryLoader.reuseLibrary(library); |
| - } |
| + compiler.libraryLoader.reset((LibraryElement library) { |
|
ahe
2014/06/24 12:48:21
Sweet!
PS: This file LGTM!
|
| + return library.isPlatformLibrary || |
| + (packagesAreImmutable && library.isPackageLibrary); |
| }); |
| } |
| oldTag.makeCurrent(); |