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

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

Issue 1421003004: Add CoreClasses (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 5 years, 2 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/mirrors/dart2js_type_mirrors.dart ('k') | pkg/compiler/lib/src/ordered_typeset.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19e9ab072594968b4ac97e998784fecff1eaf892..edf5d67acdb1e443db4762f1c0b3334ff3d04752 100644
--- a/pkg/compiler/lib/src/native/enqueue.dart
+++ b/pkg/compiler/lib/src/native/enqueue.dart
@@ -98,6 +98,7 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
Resolution get resolution => compiler.resolution;
DiagnosticReporter get reporter => compiler.reporter;
+ CoreTypes get coreTypes => compiler.coreTypes;
void processNativeClasses(Iterable<LibraryElement> libraries) {
if (compiler.hasIncrementalSupport) {
@@ -471,20 +472,20 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
continue;
}
if (type is InterfaceType) {
- if (type.element == compiler.intClass) {
+ if (type == coreTypes.intType) {
backend.registerInstantiatedType(type, world, registry);
- } else if (type.element == compiler.doubleClass) {
+ } else if (type == coreTypes.doubleType) {
backend.registerInstantiatedType(type, world, registry);
- } else if (type.element == compiler.numClass) {
+ } else if (type == coreTypes.numType) {
backend.registerInstantiatedType(
- compiler.coreTypes.doubleType, world, registry);
+ coreTypes.doubleType, world, registry);
backend.registerInstantiatedType(
- compiler.coreTypes.intType, world, registry);
- } else if (type.element == compiler.stringClass) {
+ coreTypes.intType, world, registry);
+ } else if (type == coreTypes.stringType) {
backend.registerInstantiatedType(type, world, registry);
- } else if (type.element == compiler.nullClass) {
+ } else if (type == coreTypes.nullType) {
backend.registerInstantiatedType(type, world, registry);
- } else if (type.element == compiler.boolClass) {
+ } else if (type == coreTypes.boolType) {
backend.registerInstantiatedType(type, world, registry);
} else if (compiler.types.isSubtype(
type, backend.listImplementation.rawType)) {
« no previous file with comments | « pkg/compiler/lib/src/mirrors/dart2js_type_mirrors.dart ('k') | pkg/compiler/lib/src/ordered_typeset.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698