From: <fwi...@us...> - 2009-08-14 00:55:11
|
Revision: 6666 http://jython.svn.sourceforge.net/jython/?rev=6666&view=rev Author: fwierzbicki Date: 2009-08-14 00:55:05 +0000 (Fri, 14 Aug 2009) Log Message: ----------- Move ThreadState parameter pass to linkDynamic Modified Paths: -------------- branches/indy/src/org/python/compiler/IndyTest.java Modified: branches/indy/src/org/python/compiler/IndyTest.java =================================================================== --- branches/indy/src/org/python/compiler/IndyTest.java 2009-08-13 02:49:57 UTC (rev 6665) +++ branches/indy/src/org/python/compiler/IndyTest.java 2009-08-14 00:55:05 UTC (rev 6666) @@ -20,9 +20,7 @@ public class IndyTest { public static void run() throws Throwable { - ThreadState ts = Py.getThreadState(); - System.out.println("foo = " + ts.frame.getname("foo")); - PyObject result = InvokeDynamic.<PyObject>foo(ts, new PyInteger(4), Py.None, + PyObject result = InvokeDynamic.<PyObject>foo(new PyInteger(4), Py.None, Py.EmptyObjects, new PyTuple()); System.out.println("result = " + result); } @@ -43,7 +41,7 @@ PyObject.class // closure ); MethodHandle call = MethodHandles.lookup().findVirtual(PyCode.class, "call", oneArgCall); - call = MethodHandles.insertArguments(call, 0, func_code); + call = MethodHandles.insertArguments(call, 0, func_code, ts); call = MethodHandles.convertArguments(call, type); site.setTarget(call); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |