Mercurial > hg > truffle
diff truffle/com.oracle.truffle.api.vm/src/com/oracle/truffle/api/vm/TruffleVM.java @ 22129:0589cc5cab30
TruffleVM can now depend on api.interop and thus there is no need for indirection between SymbolInvoker and its Impl. Enough to do direct calls.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 03 Sep 2015 17:15:44 +0200 |
parents | f879b1fe3773 |
children | 19205292b0c7 |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api.vm/src/com/oracle/truffle/api/vm/TruffleVM.java Thu Sep 03 16:38:45 2015 +0200 +++ b/truffle/com.oracle.truffle.api.vm/src/com/oracle/truffle/api/vm/TruffleVM.java Thu Sep 03 17:15:44 2015 +0200 @@ -639,11 +639,11 @@ for (;;) { try { if (target == null) { - target = SPI.createCallTarget(language, result[0], arr.toArray()); + target = SymbolInvokerImpl.createCallTarget(language, result[0], arr.toArray()); } res[0] = target.call(arr.toArray()); break; - } catch (SymbolInvoker.ArgumentsMishmashException ex) { + } catch (ArgumentsMishmashException ex) { target = null; } } @@ -843,11 +843,6 @@ } @Override - protected CallTarget createCallTarget(TruffleLanguage<?> lang, Object obj, Object[] args) throws IOException { - return super.createCallTarget(lang, obj, args); - } - - @Override public ToolSupportProvider getToolSupport(TruffleLanguage<?> l) { return super.getToolSupport(l); }