changeset 17407:c4cdee8566a4

Truffle: rename PrintTrufflePerformanceWarnings to TraceTrufflePerformanceWarnings.
author Christian Humer <christian.humer@gmail.com>
date Thu, 09 Oct 2014 17:25:59 +0200
parents 1615d78a9d35
children f0792f868d7d
files graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/PartialEvaluator.java graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCacheImpl.java graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCompilerOptions.java
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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<String, Object> 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<String, Object> properties = new LinkedHashMap<>();
                 properties.put("originalTarget", decision.getTarget());
                 properties.put("callNode", callNode);
--- 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<String, Object> map = new LinkedHashMap<>();
--- 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<Boolean> PrintTrufflePerformanceWarnings = new OptionValue<>(false);
+    public static final OptionValue<Boolean> TraceTrufflePerformanceWarnings = new OptionValue<>(false);
     @Option(help = "")
     public static final OptionValue<Boolean> TraceTruffleCompilation = new OptionValue<>(false);
     @Option(help = "")