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

Unified Diff: pkg/compiler/lib/src/native/enqueue.dart

Issue 2659883002: Use entities in BackendClasses (Closed)
Patch Set: Updated cf. comments. Created 3 years, 11 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/native/enqueue.dart
diff --git a/pkg/compiler/lib/src/native/enqueue.dart b/pkg/compiler/lib/src/native/enqueue.dart
index 2b804bd44b4f92512f551e872c726a3d235538b9..228caa39f509242d07880a420dd9a592a2083449 100644
--- a/pkg/compiler/lib/src/native/enqueue.dart
+++ b/pkg/compiler/lib/src/native/enqueue.dart
@@ -437,21 +437,15 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
continue;
}
if (type is ResolutionInterfaceType) {
- if (type == commonElements.intType) {
- registerInstantiation(type);
- } else if (type == commonElements.doubleType) {
- registerInstantiation(type);
- } else if (type == commonElements.numType) {
+ if (type == commonElements.numType) {
registerInstantiation(commonElements.doubleType);
registerInstantiation(commonElements.intType);
- } else if (type == commonElements.stringType) {
- registerInstantiation(type);
- } else if (type == commonElements.nullType) {
- registerInstantiation(type);
- } else if (type == commonElements.boolType) {
- registerInstantiation(type);
- } else if (compiler.types.isSubtype(
- type, backend.backendClasses.listImplementation.rawType)) {
+ } else if (type == commonElements.intType ||
+ type == commonElements.doubleType ||
+ type == commonElements.stringType ||
+ type == commonElements.nullType ||
+ type == commonElements.boolType ||
+ type.asInstanceOf(backend.backendClasses.listClass) != null) {
registerInstantiation(type);
}
// TODO(johnniwinther): Improve spec string precision to handle type
« no previous file with comments | « pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart ('k') | pkg/compiler/lib/src/ssa/interceptor_simplifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698