Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLTestRunner.java @ 21468:99942eac9c6d
Introducing TruffleVM - a central place to invoke code in any registered TruffleLanguage.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Fri, 22 May 2015 13:41:10 +0200 |
parents | e3c95cbbb50c |
children | 286aef83a9a7 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLTestRunner.java Fri May 22 10:50:43 2015 +0200 +++ b/graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLTestRunner.java Fri May 22 13:41:10 2015 +0200 @@ -37,8 +37,8 @@ import org.junit.runners.model.*; import com.oracle.truffle.api.dsl.*; -import com.oracle.truffle.api.source.*; -import com.oracle.truffle.sl.*; +import com.oracle.truffle.api.source.Source; +import com.oracle.truffle.sl.SLMain; import com.oracle.truffle.sl.builtins.*; import com.oracle.truffle.sl.factory.*; import com.oracle.truffle.sl.runtime.*; @@ -171,6 +171,10 @@ for (NodeFactory<? extends SLBuiltinNode> builtin : builtins) { context.installBuiltin(builtin); } + /* + * TruffleVM vm = TruffleVM.create(); String script = readAllLines(testCase.path); for + * (int i = 0; i < repeats; i++) { vm.eval("application/x-sl", script); } + */ final Source source = Source.fromText(readAllLines(testCase.path), testCase.sourceName); SLMain.run(context, source, null, repeats);