Leopold Toetsch wrote:
Jonathan Sillito <[EMAIL PROTECTED]> wrote:


We need them. Parrot calling conventions are not the only convention we
have. And for parrot calling conventions you have to save registers too.


I was not suggesting that we not save registers, just that we use a context
object to do it rather than the stacks. I suppose there would be not much
benefit to this anyway ...


There are stack calling conventions too.

If I understood Jonathan's suggestion correctly, I think that he meant that we could use the context object (which is mandated by calling conventions) to restore the necessary registers. Thus we would not need the stacks to do it for us. When a context object is invoked it restores the registers that it wants, which it saved internally when it was created.


I personally think that the idea has appeal, but I am uncertain how the two methods would compare in terms of speed.


Matt




Reply via email to