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

Unified Diff: pkg/compiler/lib/src/js_backend/impact_transformer.dart

Issue 2750503003: Register type constants through ConstantUse (Closed)
Patch Set: Created 3 years, 9 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/impact_transformer.dart
diff --git a/pkg/compiler/lib/src/js_backend/impact_transformer.dart b/pkg/compiler/lib/src/js_backend/impact_transformer.dart
index b3e04547ce036bb35015c3947ffdc2db6fd3ebcf..024a6c2086c9821787f431d660a3917e050fb8a0 100644
--- a/pkg/compiler/lib/src/js_backend/impact_transformer.dart
+++ b/pkg/compiler/lib/src/js_backend/impact_transformer.dart
@@ -346,7 +346,6 @@ class CodegenImpactTransformer {
final MirrorsData _mirrorsData;
final OneShotInterceptorData _oneShotInterceptorData;
final LookupMapAnalysis _lookupMapAnalysis;
- final CustomElementsCodegenAnalysis _customElementsCodegenAnalysis;
final RuntimeTypesChecksBuilder _rtiChecksBuilder;
CodegenImpactTransformer(
@@ -362,7 +361,6 @@ class CodegenImpactTransformer {
this._mirrorsData,
this._oneShotInterceptorData,
this._lookupMapAnalysis,
- this._customElementsCodegenAnalysis,
this._rtiChecksBuilder);
void onIsCheckForCodegen(
@@ -405,7 +403,6 @@ class CodegenImpactTransformer {
}
}
- @override
WorldImpact transformCodegenImpact(CodegenImpact impact) {
TransformedWorldImpact transformed = new TransformedWorldImpact(impact);
@@ -461,11 +458,6 @@ class CodegenImpactTransformer {
}
}
- for (ClassElement element in impact.typeConstants) {
- _customElementsCodegenAnalysis.registerTypeConstant(element);
- _lookupMapAnalysis.registerTypeConstant(element);
- }
-
for (FunctionElement element in impact.asyncMarkers) {
switch (element.asyncMarker) {
case AsyncMarker.ASYNC:

Powered by Google App Engine
This is Rietveld 408576698