On Mon, Oct 14, 2002 at 10:06:54AM +0200, Leopold Toetsch wrote: > Steve Fink wrote: > > > >The problem is that the JIT doesn't support tracing. > > > No, the problem is, that restarting JIT is broken. So it's truely a bug > and should not be marked with SKIP or TODO. > > >... I could imagine > >ways of fixing this -- make it drop into a non-JIT core if tracing is > >turned on, > > > This is, what restart NEXT() does.
That's what I originally thought, but there seemed to be no attempt at implementing this in the code, so I though it must not have been attempted yet -- hence the TODO. But either way -- anyone want to take a crack at it? If I remember correctly, it would essentially require making restart somehow compile down to the code for 'end', plus setting some flags so you know you're not really done yet. Then put the runops() call in a loop if it isn't already, to keep going until a true 'end' op is reached. For bonus points, re-enter JIT runops when tracing and debugging are turned back off. Or something like that. I'm not looking at the code right now.