This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GIJ _Jv_InterpMethod::run question
Kyle> SomeClass a = new SomeClass();
Kyle> a.someMethod();
Kyle> I am looking for the instance a, not the class SomeClass.
There's no reliable way to get that at the moment.
You could introduce a new variable which copies locals[0] after
locals have been initialized (look for the memcpy) and if the method
is not static.
Simply using locals[0] won't work because the user bytecode is free to
overwrite that slot. (Code generated by existing java compilers won't
do this... but the bytecode could be hand-written.)
What is for?
Tom