Truffle Feature Request: Print argument to neverPartOfCompilation

Stefan Marr java at stefan-marr.de
Fri Jul 4 11:20:26 UTC 2014


Hi:

Would it be possible to include something along the lines of the patch below?
That would be very helpful to debug compilation.

diff --git a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/nodes/asserts/NeverPartOfCompilationNode.java b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/nodes/asserts/NeverPartOfCompilationNode.java
index 3e2fc61..9286007 100644
--- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/nodes/asserts/NeverPartOfCompilationNode.java
+++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/nodes/asserts/NeverPartOfCompilationNode.java
@@ -40,6 +40,6 @@ public class NeverPartOfCompilationNode extends MacroNode implements IterableNod
     }

     public final String getMessage() {
-        return message;
+        return message + " " + arguments.toString();
     }
 }


Thanks
Stefan

-- 
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/





More information about the graal-dev mailing list