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

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

Issue 12509005: Add intersection of disjoint masks to the TypeMask implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Allow base == null. Ugh. Created 7 years, 9 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 93e31e2a65c799f12abaff849f02ac68a1da8feb..3fa0f851137c5066f9f882c5011d505d6e380d1d 100644
--- a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
+++ b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
@@ -289,7 +289,7 @@ class SimpleTypesInferrer extends TypesInferrer {
length, () => new Set<Element>());
set.add(element);
});
-
+
// This iteration assumes the [WorkSet] is LIFO.
for (int i = max; i >= 0; i--) {
Set<Element> set = methodSizes[i];
@@ -319,7 +319,7 @@ class SimpleTypesInferrer extends TypesInferrer {
void initializeTypes() {
// TODO(ngeoffray): Is that the right type?
- nullType = new TypeMask.exact(compiler.nullClass.rawType);
+ nullType = new TypeMask.exact(compiler.nullClass.computeType(compiler));
intType = new TypeMask.nonNullExact(
compiler.intClass.rawType);

Powered by Google App Engine
This is Rietveld 408576698