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

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

Issue 726383003: Compute more accurate bound on expected work when tracing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/inferrer/node_tracer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
index 8941c7bc28b0ddfdf7233193c09f88c60e833317..bea6f60822660460e7bc6755a355a693ec42fe70 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -167,10 +167,10 @@ abstract class TypeInformation {
accept(TypeInformationVisitor visitor);
- /// The [Element] where this [TypeInformation] was created. May be
+ /// The [Element] where this [TypeInformation] was created. May be `null`
/// for some [TypeInformation] nodes, where we do not need to store
/// the information.
- Element get owner => null;
+ Element get owner => (context != null) ? context.element : null;
/// Returns whether the type cannot change after it has been
/// inferred.
@@ -472,8 +472,6 @@ class MemberTypeInformation extends ElementTypeInformation
return visitor.visitMemberTypeInformation(this);
}
- Element get owner => element.outermostEnclosingMemberOrTopLevel;
-
bool hasStableType(TypeGraphInferrerEngine inferrer) {
// The number of assignments of non-final fields is
// not stable. Therefore such a field cannot be stable.
@@ -639,8 +637,6 @@ abstract class CallSiteTypeInformation extends TypeInformation
/// Return an iterable over the targets of this call.
Iterable<Element> get callees;
-
- Element get owner => caller;
}
class StaticCallSiteTypeInformation extends CallSiteTypeInformation {
« no previous file with comments | « pkg/compiler/lib/src/inferrer/node_tracer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698