diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleRuntime.java @ 18386:656331a61829

Truffle: add support for setting a couple of compiler options for individual execution contexts.
author Chris Seaton <chris.seaton@oracle.com>
date Sun, 16 Nov 2014 15:44:38 -0800
parents 890d284b2771
children
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleRuntime.java	Thu Nov 13 11:12:25 2014 +0100
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleRuntime.java	Sun Nov 16 15:44:38 2014 -0800
@@ -112,6 +112,14 @@
     MaterializedFrame createMaterializedFrame(Object[] arguments, FrameDescriptor frameDescriptor);
 
     /**
+     * Creates an object which allows you to test for support of and set options specific for this
+     * runtime.
+     *
+     * @return the newly created compiler options object
+     */
+    CompilerOptions createCompilerOptions();
+
+    /**
      * Accesses the current stack, i.e., the contents of the {@link Frame}s and the associated
      * {@link CallTarget}s. Iteration starts at the caller frame, i.e., it does not include the
      * current frame.