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

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

Issue 2331923002: Handle signature types and fields in kernel_impact (Closed)
Patch Set: Updated cf. comments. Created 4 years, 3 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 | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 41e7227e7b07de3dd592cc82db730a07a483a782..73ba2345330b9726c0c5d8ce780c4ca876997f93 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -2820,6 +2820,11 @@ class JavaScriptImpactTransformer extends ImpactTransformer {
case Feature.FALL_THROUGH_ERROR:
registerBackendImpact(transformed, impacts.fallThroughError);
break;
+ case Feature.FIELD_WITHOUT_INITIALIZER:
+ transformed.registerTypeUse(
+ new TypeUse.instantiation(backend.coreTypes.nullType));
+ registerBackendImpact(transformed, impacts.nullLiteral);
+ break;
case Feature.INC_DEC_OPERATION:
registerBackendImpact(transformed, impacts.incDecOperation);
break;
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698