----- Original Message ----- 
> > Depending on how deep the call stack is and how frequently we push and pop
> > stack frames, being able to not unwind some number of frames can be a
> > significant savings.
> 
> Isn't this assuming that the stack frames are unique? How would you handle
> recursion under this scheme?

I do not understand the question.  Recursive calls get new stack frames.  Stack 
frames from recursive calls and stack frames from non-recursive calls are 
handled identically.

Maybe you meant tail calls?  Tail calls require no special treatment.

-Nathan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to