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

Unified Diff: pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart

Issue 1348063002: Make the universe parts into small libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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/enqueue.dart ('k') | pkg/compiler/lib/src/inferrer/inferrer_visitor.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
index 474f71f200c1f23e74b80a53ac1be843aa3f04dc..4bb654a97f8dd5ad7de866c73d60c7f5a0b1528f 100644
--- a/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
@@ -25,7 +25,11 @@ import '../types/types.dart' show
TypeMask,
TypesInferrer,
UnionTypeMask;
-import '../universe/universe.dart';
+import '../universe/selector.dart' show
+ Selector,
+ SelectorKind;
+import '../universe/side_effects.dart' show
+ SideEffects;
import '../world.dart' show
ClassWorld;
@@ -2011,7 +2015,7 @@ class ConcreteTypesInferrer
SideEffects sideEffects,
bool inLoop) {
caller = getRealCaller(caller);
- if ((selector == null) || (selector.kind == SelectorKind.CALL)) {
+ if ((selector == null) || (selector.isCall)) {
callee = callee.implementation;
if (selector != null && selector.name == 'JS') {
return null;
@@ -2044,7 +2048,7 @@ class ConcreteTypesInferrer
}
return getSendReturnType(selector, callee, receiverClass, arguments);
}
- } else if (selector.kind == SelectorKind.GETTER) {
+ } else if (selector.isGetter) {
if (callee.isField) {
addFieldReader(callee, caller);
return getFieldType(selector, callee);
@@ -2058,7 +2062,7 @@ class ConcreteTypesInferrer
addClosure(callee, null, null);
return singletonConcreteType(baseTypes.functionBaseType);
}
- } else if (selector.kind == SelectorKind.SETTER) {
+ } else if (selector.isSetter) {
ConcreteType argumentType = arguments.positional.first;
if (callee.isField) {
augmentFieldType(callee, argumentType);
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/inferrer/inferrer_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698