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

Unified Diff: pkg/compiler/lib/src/js_backend/custom_elements_analysis.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
Index: pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
diff --git a/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart b/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
index 9f091a22a95dc93e0c7028439f65fd84c53981c5..5344604623c2e67f391b7ba72b1f5423f30d11f5 100644
--- a/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
+++ b/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
@@ -10,6 +10,7 @@ import '../universe/use.dart' show StaticUse;
import '../universe/world_impact.dart'
show WorldImpact, StagedWorldImpactBuilder;
import 'backend.dart';
+import 'backend_usage.dart' show BackendUsageBuilder;
/**
* Support for Custom Elements.
@@ -153,6 +154,8 @@ class CustomElementsAnalysisJoin {
CustomElementsAnalysisJoin(this.backend);
+ BackendUsageBuilder get backendUsageBuilder => backend.backendUsageBuilder;
+
WorldImpact flush() {
if (!demanded) return const WorldImpact();
var newActiveClasses = new Set<ClassElement>();
@@ -173,7 +176,7 @@ class CustomElementsAnalysisJoin {
.registerStaticUse(new StaticUse.foreignUse(constructor));
}
escapingConstructors
- .forEach(backend.backendUsage.registerGlobalDependency);
+ .forEach(backendUsageBuilder.registerGlobalDependency);
// Force the generaton of the type constant that is the key to an entry
// in the generated table.
ConstantValue constant = makeTypeConstant(classElement);
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend_usage.dart ('k') | pkg/compiler/lib/src/js_backend/type_variable_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698