KIO question - synchronous IO?

Maciej Stachowiak mjs at apple.com
Mon Feb 23 23:57:28 CET 2004


On Feb 20, 2004, at 8:01 PM, Dirk Mueller wrote:

> On Wednesday 19 November 2003 09:15, Maciej Stachowiak wrote:
>
>> P.S. I want to eventually redo KJS to support continuations, I think
>> this would be useful for not only XMLHttpRequest but also for pausing
>> the interpreter when JS wants a layout property and style sheets 
>> aren't
>> in yet; showModalDialog if we ever implement it;
>
> Well, alert() likes to block too, and the worst problem is the KJS 
> debugger,
> which we only have working with horrible kludges.
>
> Do you have any concrete design changes in mind which we could maybe 
> discuss
> before you start moving things around?

I haven't thought about it in detail yet. But in general, my plan is to 
change KJS to be iterative instead of recursive. This way, the current 
execution state will be explicitly represented, rather than implicitly 
by the C stack. That way you  can save the state and resume execution 
at the same point.

This will most likely involve a lot of changes in kjs/nodes.cpp and 
hardly any changes anywhere else.

I haven't really thought through it in a lot of detail yet.

Regards,
Maciej



More information about the Khtml-devel mailing list