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

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

Issue 2814973003: Extract ClosedWorldRefiner implementation from ClosedWorldImpl to ClosedWorldBase (Closed)
Patch Set: Created 3 years, 8 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: 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;

Powered by Google App Engine
This is Rietveld 408576698