Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
16150:f98b033b6050 | 16151:76895499bc88 |
---|---|
70 * Can be set with | 70 * Can be set with |
71 * {@code -Dtruffle.TraceRewritesFilterToKind=UNINITIALIZED|SPECIALIZED|POLYMORPHIC|GENERIC}. | 71 * {@code -Dtruffle.TraceRewritesFilterToKind=UNINITIALIZED|SPECIALIZED|POLYMORPHIC|GENERIC}. |
72 */ | 72 */ |
73 public static NodeCost TraceRewritesFilterToCost = parseNodeInfoKind(System.getProperty("truffle.TraceRewritesFilterToCost")); | 73 public static NodeCost TraceRewritesFilterToCost = parseNodeInfoKind(System.getProperty("truffle.TraceRewritesFilterToCost")); |
74 | 74 |
75 /** | |
76 * Enables the dumping of Node creations and AST rewrites in JSON format. | |
77 * <p> | |
78 * Can be set with {@code -Dtruffle.TraceASTJSON=true}. | |
79 */ | |
80 public static final boolean TraceASTJSON = Boolean.getBoolean("truffle.TraceASTJSON"); | |
81 | |
75 private static NodeCost parseNodeInfoKind(String kind) { | 82 private static NodeCost parseNodeInfoKind(String kind) { |
76 if (kind == null) { | 83 if (kind == null) { |
77 return null; | 84 return null; |
78 } | 85 } |
79 | 86 |