This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] _Jv_CompileMethod


Tom Tromey wrote:
Bryce> Why call _Jv_InterpMethod::run() instead of
Bryce> _Jv_InterpMethod::compile() directly?

Unfortunately, AFAIK, you can't do that. compile() needs a table of
the addresses of the labels in run(), and there is no way to get at
this table outside of run(). This is a known limitation of writing
interpreters this way (the vmgen papers mention this as well).

Oh, indeed. I suppose you could store a pointer to the list somewhere which is visible to compile(), but that would be ugly in itself and probably not worth the effort.


Bryce


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]