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

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

Issue 11348297: Widen big concrete types to dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Peter's comment Created 8 years 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/types.dart
diff --git a/sdk/lib/_internal/compiler/implementation/types/types.dart b/sdk/lib/_internal/compiler/implementation/types/types.dart
index c41fd9347bc74802d6a27d1659d7390934cee236..92920255920fa50df740ebba697720fb86116cb7 100644
--- a/sdk/lib/_internal/compiler/implementation/types/types.dart
+++ b/sdk/lib/_internal/compiler/implementation/types/types.dart
@@ -21,10 +21,10 @@ class TypesTask extends CompilerTask {
final Map<Element, Link<Element>> typedSends;
final ConcreteTypesInferrer concreteTypesInferrer;
- TypesTask(Compiler compiler, bool enableConcreteTypeInference)
+ TypesTask(Compiler compiler)
: untypedElements = new Set<Element>(),
typedSends = new Map<Element, Link<Element>>(),
- concreteTypesInferrer = enableConcreteTypeInference
+ concreteTypesInferrer = compiler.enableConcreteTypeInference
? new ConcreteTypesInferrer(compiler) : null,
super(compiler);
@@ -70,7 +70,8 @@ class TypesTask extends CompilerTask {
for (Element parameter in signature.requiredParameters) {
if (types.isEmpty) return null;
if (element == parameter) {
- return new ConcreteType.singleton(new ClassBaseType(types.head));
+ return new ConcreteType.singleton(compiler.maxConcreteTypeSize,
+ new ClassBaseType(types.head));
}
types = types.tail;
}

Powered by Google App Engine
This is Rietveld 408576698