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

Unified Diff: pkg/compiler/lib/src/deferred_load.dart

Issue 2694653005: Extract BackendUsageBuilder from BackendUsage (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index 6916c5e8370fc30b1e33869133c3aaf38607a12d..19cc90fbf6c721bb324c403e3fe7839a0e664e25 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -31,6 +31,7 @@ import 'elements/elements.dart'
ResolvedAstKind,
TypedefElement;
import 'js_backend/js_backend.dart' show JavaScriptBackend;
+import 'js_backend/backend_usage.dart' show BackendUsage;
import 'resolution/resolution.dart' show AnalyzableElementX;
import 'resolution/tree_elements.dart' show TreeElements;
import 'tree/tree.dart' as ast;
@@ -158,6 +159,7 @@ class DeferredLoadTask extends CompilerTask {
JavaScriptBackend get backend => compiler.backend;
DiagnosticReporter get reporter => compiler.reporter;
+ BackendUsage get _backendUsage => backend.backendUsage;
/// Returns the [OutputUnit] where [element] belongs.
OutputUnit outputUnitForElement(Element element) {
@@ -680,7 +682,7 @@ class DeferredLoadTask extends CompilerTask {
// are things that the backend needs but cannot associate with a
// particular element, for example, startRootIsolate. This set
// also contains elements for which we lack precise information.
- for (Element element in backend.backendUsage.globalDependencies) {
+ for (Element element in _backendUsage.globalDependencies) {
_mapDependencies(element: element, import: _fakeMainImport);
}
« 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