# HG changeset patch # User Miguel Garcia # Date 1400000639 -7200 # Node ID 610b064eb8f9ac93ff895ceec966974c917c6fa6 # Parent 64dc2584a3f0f8af811e0191b62e82bb9febcaa0 [inlining] preparing to move processNextInvoke() closer to the data it mutates diff -r 64dc2584a3f0 -r 610b064eb8f9 graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/InliningPhase.java --- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/InliningPhase.java Tue May 13 15:11:15 2014 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/InliningPhase.java Tue May 13 19:03:59 2014 +0200 @@ -170,7 +170,7 @@ data.popGraphs(remainingGraphs); data.popInvocation(); } else if (graphInfo.hasRemainingInvokes() && inliningPolicy.continueInlining(graphInfo.graph())) { - processNextInvoke(data, graphInfo, context); + processNextInvoke(data, graphInfo, context, maxMethodPerInlining, canonicalizer); } else { data.popGraph(); if (!currentInvocation.isRoot()) { @@ -196,7 +196,7 @@ /** * Process the next invoke and enqueue all its graphs for processing. */ - private void processNextInvoke(InliningData data, GraphInfo graphInfo, HighTierContext context) { + private static void processNextInvoke(InliningData data, GraphInfo graphInfo, HighTierContext context, int maxMethodPerInlining, CanonicalizerPhase canonicalizer) { Invoke invoke = graphInfo.popInvoke(); MethodInvocation callerInvocation = data.currentInvocation(); Assumptions parentAssumptions = callerInvocation.assumptions();