Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleOptions.java @ 16151:76895499bc88
Add facility to create JSON dump of AST creation/rewriting
author | Christian Wirth <christian.wirth@oracle.com> |
---|---|
date | Fri, 20 Jun 2014 15:13:16 +0200 |
parents | 5d1308c78ddc |
children | e52ad0d3b7d6 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleOptions.java Wed Jun 18 14:12:06 2014 +0200 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleOptions.java Fri Jun 20 15:13:16 2014 +0200 @@ -72,6 +72,13 @@ */ public static NodeCost TraceRewritesFilterToCost = parseNodeInfoKind(System.getProperty("truffle.TraceRewritesFilterToCost")); + /** + * Enables the dumping of Node creations and AST rewrites in JSON format. + * <p> + * Can be set with {@code -Dtruffle.TraceASTJSON=true}. + */ + public static final boolean TraceASTJSON = Boolean.getBoolean("truffle.TraceASTJSON"); + private static NodeCost parseNodeInfoKind(String kind) { if (kind == null) { return null;