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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 2800643002: Register deferred load impact through ResolutionEnqueuerListener (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../compiler_new.dart' as api; 9 import '../compiler_new.dart' as api;
10 import 'closure.dart' as closureMapping show ClosureTask; 10 import 'closure.dart' as closureMapping show ClosureTask;
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 if (mainApp != null) { 612 if (mainApp != null) {
613 resolutionEnqueuer.applyImpact(computeImpactForLibrary(mainApp)); 613 resolutionEnqueuer.applyImpact(computeImpactForLibrary(mainApp));
614 } 614 }
615 if (librariesToAnalyzeWhenRun != null) { 615 if (librariesToAnalyzeWhenRun != null) {
616 for (Uri libraryUri in librariesToAnalyzeWhenRun) { 616 for (Uri libraryUri in librariesToAnalyzeWhenRun) {
617 resolutionEnqueuer.applyImpact(computeImpactForLibrary( 617 resolutionEnqueuer.applyImpact(computeImpactForLibrary(
618 libraryLoader.lookupLibrary(libraryUri))); 618 libraryLoader.lookupLibrary(libraryUri)));
619 } 619 }
620 } 620 }
621 } 621 }
622 if (deferredLoadTask.isProgramSplit) {
623 resolutionEnqueuer
624 .applyImpact(backend.computeDeferredLoadingImpact());
625 }
626 resolveLibraryMetadata(); 622 resolveLibraryMetadata();
627 reporter.log('Resolving...'); 623 reporter.log('Resolving...');
628 MethodElement mainMethod; 624 MethodElement mainMethod;
629 if (mainFunction != null && !mainFunction.isMalformed) { 625 if (mainFunction != null && !mainFunction.isMalformed) {
630 mainFunction.computeType(resolution); 626 mainFunction.computeType(resolution);
631 mainMethod = mainFunction; 627 mainMethod = mainFunction;
632 } 628 }
633 629
634 processQueue(resolutionEnqueuer, mainMethod, libraryLoader.libraries, 630 processQueue(resolutionEnqueuer, mainMethod, libraryLoader.libraries,
635 onProgress: showResolutionProgress); 631 onProgress: showResolutionProgress);
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 if (library != null && library.isSynthesized) { 1962 if (library != null && library.isSynthesized) {
1967 return null; 1963 return null;
1968 } 1964 }
1969 if (library == null && required) { 1965 if (library == null && required) {
1970 throw new SpannableAssertionFailure( 1966 throw new SpannableAssertionFailure(
1971 library, "The library '${uri}' was not found."); 1967 library, "The library '${uri}' was not found.");
1972 } 1968 }
1973 return library; 1969 return library;
1974 } 1970 }
1975 } 1971 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698