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

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

Issue 1062913003: Extract CallStructure from Selector. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix expentancy in unittest Created 5 years, 8 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/names.dart ('k') | pkg/compiler/lib/src/js_backend/namer.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 46cd38607d3652f32995bf7207a88298c8a43236..5247fe36ffd56c2aaab0b00cd11f81147c6a41d2 100644
--- a/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
@@ -6,6 +6,7 @@ library concrete_types_inferrer;
import 'dart:collection' show Queue, IterableBase;
import '../native/native.dart' as native;
+import '../closure.dart' show BoxFieldElement;
import '../dart2jslib.dart' hide Selector, TypedSelector;
import '../dart_types.dart' show DartType, TypeKind;
import '../elements/elements.dart';
@@ -1773,7 +1774,7 @@ class ConcreteTypesInferrer
*/
void ensureFieldInitialized(Element field) {
// This is test is needed for fitering out BoxFieldElements.
- if (field is FieldElement && inferredFieldTypes[field] == null) {
+ if (field is! BoxFieldElement && inferredFieldTypes[field] == null) {
analyzeFieldInitialization(field);
}
}
« no previous file with comments | « pkg/compiler/lib/src/elements/names.dart ('k') | pkg/compiler/lib/src/js_backend/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698