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

Unified Diff: pkg/compiler/lib/src/types/masks.dart

Issue 2609063002: Further reduce use of Element in codegen. (Closed)
Patch Set: Created 3 years, 12 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/types/masks.dart
diff --git a/pkg/compiler/lib/src/types/masks.dart b/pkg/compiler/lib/src/types/masks.dart
index a713dc8acb4ac2e5c7825578c79b6ed385b2f72b..01dff0200bf509a9447d3fabf6c144ae5ad58ee9 100644
--- a/pkg/compiler/lib/src/types/masks.dart
+++ b/pkg/compiler/lib/src/types/masks.dart
@@ -197,4 +197,12 @@ class CommonMasks {
closedWorld.backendClasses.indexingBehaviorImplementation,
closedWorld));
}
+
+ TypeMask createNonNullExact(ClassElement cls) {
+ return new TypeMask.nonNullExact(cls.declaration, closedWorld);
+ }
+
+ TypeMask createNonNullSubtype(ClassElement cls) {
+ return new TypeMask.nonNullSubtype(cls.declaration, closedWorld);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698