Index: pkg/compiler/lib/src/inferrer/inferrer_engine.dart |
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart |
index d42541c6c991d526ba4c03afb89b64823530b954..5751d0c4f8725d6910b13accccc5ab5753295166 100644 |
--- a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart |
+++ b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart |
@@ -132,7 +132,8 @@ class InferrerEngine { |
sideEffects.setAllSideEffects(); |
sideEffects.setDependsOnSomething(); |
} else { |
- sideEffects.add(closedWorldRefiner.getCurrentlyKnownSideEffects(callee)); |
+ sideEffects.add( |
+ closedWorldRefiner.getCurrentlyKnownSideEffects(callee.declaration)); |
} |
} |
@@ -557,7 +558,8 @@ class InferrerEngine { |
types.allocatedCalls.forEach((info) { |
if (!info.inLoop) return; |
if (info is StaticCallSiteTypeInformation) { |
- closedWorldRefiner.addFunctionCalledInLoop(info.calledElement); |
+ closedWorldRefiner |
+ .addFunctionCalledInLoop(info.calledElement.declaration); |
} else if (info.mask != null && !info.mask.containsAll(closedWorld)) { |
// For instance methods, we only register a selector called in a |
// loop if it is a typed selector, to avoid marking too many |
@@ -958,7 +960,7 @@ class InferrerEngine { |
int max = 0; |
Map<int, Setlet<ResolvedAst>> methodSizes = <int, Setlet<ResolvedAst>>{}; |
compiler.enqueuer.resolution.processedEntities |
- .forEach((AstElement element) { |
+ .forEach((MemberElement element) { |
ResolvedAst resolvedAst = element.resolvedAst; |
element = element.implementation; |
if (element.impliesType) return; |