Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleOptions.java @ 18961:afa70d3e8159
Allow users to provide their own TruffleRuntime implementation
and add ForceInterpreter option to TruffleOptions.
author | Paul Woegerer <paul.woegerer@oracle.com> |
---|---|
date | Tue, 27 Jan 2015 14:11:52 +0100 |
parents | e52ad0d3b7d6 |
children | 5ea169a3bf81 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleOptions.java Tue Jan 27 12:05:41 2015 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleOptions.java Tue Jan 27 14:11:52 2015 +0100 @@ -34,6 +34,13 @@ public class TruffleOptions { /** + * Force truffle to run in interpreter mode. + * <p> + * Can be set with {@code -Dtruffle.ForceInterpreter=true}. + */ + public static boolean ForceInterpreter = Boolean.getBoolean("truffle.ForceInterpreter"); + + /** * Enables/disables the rewriting of traces in the Truffle runtime to stdout. * <p> * Can be set with {@code -Dtruffle.TraceRewrites=true}.