Truffle Feature Request: Print argument to neverPartOfCompilation

Bernhard Urban bernhard.urban at jku.at
Wed Jul 9 08:44:26 UTC 2014


Hi Stefan,

I'll push it.  Thanks for the suggestion!

-Bernhard


On Fri, Jul 4, 2014 at 1:20 PM, Stefan Marr <java at stefan-marr.de> wrote:

> 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