# HG changeset patch # User Christian Humer # Date 1415211537 -3600 # Node ID ad913bc76b90624c506d65f3d4584f91755a6b67 # Parent c7d99b3d1f1516f99f09009cf71799993a947c8f Truffle: cleanup TraceInliningListener. diff -r c7d99b3d1f15 -r ad913bc76b90 graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/debug/TraceInliningListener.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/debug/TraceInliningListener.java Wed Nov 05 19:17:05 2014 +0100 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/debug/TraceInliningListener.java Wed Nov 05 19:18:57 2014 +0100 @@ -24,8 +24,6 @@ import static com.oracle.graal.truffle.TruffleCompilerOptions.*; -import java.util.*; - import com.oracle.graal.nodes.*; import com.oracle.graal.truffle.*; @@ -57,19 +55,11 @@ TruffleInliningProfile profile = decision.getProfile(); boolean inlined = decision.isInline(); String msg = inlined ? "inline success" : "inline failed"; - logInlinedImpl(msg, decision.getProfile().getCallNode(), profile, depth); + log(depth, msg, decision.getProfile().getCallNode().getCurrentCallTarget().toString(), profile.getDebugProperties()); if (inlined) { logInliningDecisionRecursive(decision, depth + 1); } } } - private static void logInlinedImpl(String status, OptimizedDirectCallNode callNode, TruffleInliningProfile profile, int depth) { - Map properties = new LinkedHashMap<>(); - if (profile != null) { - properties.putAll(profile.getDebugProperties()); - } - log(depth, status, callNode.getCurrentCallTarget().toString(), properties); - } - }