# HG changeset patch # User Christian Humer # Date 1412868359 -7200 # Node ID c4cdee8566a4bd35daf573763ce73b3bc6ff8716 # Parent 1615d78a9d350bd6b99950360f51f931c927683b Truffle: rename PrintTrufflePerformanceWarnings to TraceTrufflePerformanceWarnings. diff -r 1615d78a9d35 -r c4cdee8566a4 graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/PartialEvaluator.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/PartialEvaluator.java Thu Oct 09 17:25:59 2014 +0200 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/PartialEvaluator.java Thu Oct 09 17:25:59 2014 +0200 @@ -371,7 +371,7 @@ TruffleInliningDecision decision = inlining.findByCall(callNode); boolean inline; if (decision == null) { - if (TruffleCompilerOptions.PrintTrufflePerformanceWarnings.getValue()) { + if (TruffleCompilerOptions.TraceTrufflePerformanceWarnings.getValue()) { Map properties = new LinkedHashMap<>(); properties.put("callNode", callNode); logPerformanceWarning("A direct call within the Truffle AST is not reachable anymore. Call node could not be inlined.", properties); @@ -385,7 +385,7 @@ OptimizedCallTarget currentTarget = decision.getProfile().getCallNode().getCurrentCallTarget(); if (decision.getTarget() != currentTarget) { - if (TruffleCompilerOptions.PrintTrufflePerformanceWarnings.getValue()) { + if (TruffleCompilerOptions.TraceTrufflePerformanceWarnings.getValue()) { Map properties = new LinkedHashMap<>(); properties.put("originalTarget", decision.getTarget()); properties.put("callNode", callNode); diff -r 1615d78a9d35 -r c4cdee8566a4 graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCacheImpl.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCacheImpl.java Thu Oct 09 17:25:59 2014 +0200 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCacheImpl.java Thu Oct 09 17:25:59 2014 +0200 @@ -192,7 +192,7 @@ } } - if (TruffleCompilerOptions.PrintTrufflePerformanceWarnings.getValue()) { + if (TruffleCompilerOptions.TraceTrufflePerformanceWarnings.getValue()) { int warnNodeCount = TruffleCompilerOptions.TrufflePerformanceWarningGraalNodeCount.getValue(); if (graph.getNodeCount() > warnNodeCount) { Map map = new LinkedHashMap<>(); diff -r 1615d78a9d35 -r c4cdee8566a4 graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCompilerOptions.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCompilerOptions.java Thu Oct 09 17:25:59 2014 +0200 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCompilerOptions.java Thu Oct 09 17:25:59 2014 +0200 @@ -95,7 +95,7 @@ // tracing @Option(help = "Prints potential performance problems of the guest language implementation.") - public static final OptionValue PrintTrufflePerformanceWarnings = new OptionValue<>(false); + public static final OptionValue TraceTrufflePerformanceWarnings = new OptionValue<>(false); @Option(help = "") public static final OptionValue TraceTruffleCompilation = new OptionValue<>(false); @Option(help = "")