Mercurial > hg > truffle
diff truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java @ 22068:fec8f8a61f6c
Introducing FindContextNode
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 06 Aug 2015 17:22:35 +0200 |
parents | e206ebd965f2 |
children | a7ca9e9a1d51 |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java Thu Aug 06 08:33:18 2015 +0200 +++ b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java Thu Aug 06 17:22:35 2015 +0200 @@ -402,7 +402,8 @@ if (failed[0] != null) { throw new IllegalStateException(failed[0]); } - SLContext fillIn = getContext(); + Node n = createFindContextNode(); + SLContext fillIn = findContext(n, null); final SLFunctionRegistry functionRegistry = fillIn.getFunctionRegistry(); for (SLFunction f : c.getFunctionRegistry().getFunctions()) { RootCallTarget callTarget = f.getCallTarget(); @@ -491,8 +492,8 @@ } } - public SLContext getContext() { - return findContext(); + public Node createFindContextNode0() { + return createFindContextNode(); } private final class SLDebugProvider implements DebugSupportProvider {