[RFC][PATCH] jit: set argument index correctly for JNI invocations

2009-07-28 Thread Tomek Grabiec
When method is a JNI method, then we add a pointer to JNI environemnt as the first argument. If method is also static, we put class's object refrence as second argument. All those arguments must be treated same as any other arguments, so they should receive indices 0 and 1 respectively.

Re: [RFC][PATCH] jit: set argument index correctly for JNI invocations

2009-07-28 Thread Pekka Enberg
Tomek Grabiec wrote: When method is a JNI method, then we add a pointer to JNI environemnt as the first argument. If method is also static, we put class's object refrence as second argument. All those arguments must be treated same as any other arguments, so they should receive indices 0 and 1

Re: [RFC][PATCH] jit: set argument index correctly for JNI invocations

2009-07-28 Thread Eduard - Gabriel Munteanu
On Tue, Jul 28, 2009 at 01:52:39PM +0300, Pekka Enberg wrote: Tomek Grabiec wrote: When method is a JNI method, then we add a pointer to JNI environemnt as the first argument. If method is also static, we put class's object refrence as second argument. All those arguments must be treated same

Re: [RFC][PATCH] jit: set argument index correctly for JNI invocations

2009-07-28 Thread Pekka Enberg
On Tue, 2009-07-28 at 17:53 +0300, Eduard - Gabriel Munteanu wrote: On Tue, Jul 28, 2009 at 01:52:39PM +0300, Pekka Enberg wrote: Tomek Grabiec wrote: When method is a JNI method, then we add a pointer to JNI environemnt as the first argument. If method is also static, we put class's object