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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart

Issue 23819039: Create type masks lazily. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
index c7189c001841037cdba2309b3534a4af6fa25d92..ec8a0a12121796ba7cc87ac3e939e07eb6436468 100644
--- a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
+++ b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
@@ -1404,6 +1404,9 @@ class InternalSimpleTypesInferrer
TypeMask handleIntrisifiedSelector(Selector selector,
ArgumentsTypes arguments) {
+ // If [:compiler.intClass:] has not been resolved, there are no int values
+ // in the program.
+ if (!compiler.intClass.isResolved) return null;
TypeMask intType = types.intType;
if (selector.mask != intType) return null;
if (!selector.isCall() && !selector.isOperator()) return null;
@@ -2220,7 +2223,7 @@ class SimpleTypeInferrerVisitor<T>
// If the receiver of the call is a local, we may know more about
// its type by refining it with the potential targets of the
- // calls.
+ // calls.
if (node.asSend() != null) {
Node receiver = node.asSend().receiver;
if (receiver != null) {

Powered by Google App Engine
This is Rietveld 408576698