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

Unified Diff: pkg/compiler/lib/src/ssa/builder.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/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index 7f13d7dab66dd0d83e2e7998d8eadd47fe233fa9..aa7904ebc2860d4334d42cc96934ea32697adf8c 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -664,7 +664,8 @@ class SsaBuilder extends ast.Visitor
*/
HGraph buildMethod(MethodElement functionElement) {
assert(invariant(functionElement, functionElement.isImplementation));
- graph.calledInLoop = closedWorld.isCalledInLoop(functionElement);
+ graph.calledInLoop =
+ closedWorld.isCalledInLoop(functionElement.declaration);
ast.FunctionExpression function = resolvedAst.node;
assert(function != null);
assert(elements.getFunctionDefinition(function) != null);

Powered by Google App Engine
This is Rietveld 408576698