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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart

Issue 223403003: Use closure tracer to identify closures that are not passed to Function.apply (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix regression in emitted meta data Created 6 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/inferrer/node_tracer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart
index 73a81dc51fb9f636ac6b1b4bea8f8aa103489a80..afdf0d44fa36f7bb1fb97b2723e98f2492896cb0 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/node_tracer.dart
@@ -63,8 +63,9 @@ Set<String> doesNotEscapeMapSet = new Set<String>.from(
'containsValue'
]);
-abstract class TracerVisitor implements TypeInformationVisitor {
- final TypeInformation tracedType;
+abstract class TracerVisitor<T extends TypeInformation>
+ implements TypeInformationVisitor {
+ final T tracedType;
final TypeGraphInferrerEngine inferrer;
final Compiler compiler;
@@ -292,7 +293,7 @@ abstract class TracerVisitor implements TypeInformationVisitor {
&& inferrer.isNativeElement(element.enclosingElement)) {
bailout('Passed to a native method');
}
- if (info.isClosurized()) {
+ if (info.isClosurized) {
bailout('Returned from a closurized method');
}
if (isClosure(info.element)) {

Powered by Google App Engine
This is Rietveld 408576698