All~

I am not sure that I understand why we deal with exception handlers at all. Why not just make exception handlers a second continuation passed to all functions. Then you call continuation 1 for successful returns and continuation 2 for exceptions. This will not introduce overhead to the common case, as common case is not installing exception handlers so you can just pass along the one you were handed, while it will simplify the code by removing the need for the control stack and special exceptions pmcs.

Matt

Dan Sugalski wrote:

At 12:59 AM +0000 3/23/04, Piers Cawley wrote:

Leopold Toetsch <[EMAIL PROTECTED]> writes:

Dan Sugalski <[EMAIL PROTECTED]> wrote:

 ... If we go with a one
 frame stack chunk then we don't have to bother with COW-ing
 *anything* with the stack.


 BTW: which stacks: Register frames of course. What about Pad, User, and
 Control?


I hope he means "All of 'em".

And what control stack? The continuation chain is the control stack, surely?


Nope. There's the exception handlers, at the very least. Possibly some lexical pad stuff. (Though of that I'm less sure)



Reply via email to