[webkit-dev] parallel controls in JavaScriptCore engine

2010-06-28 Thread Srinivasa Rao Edara
Hello, As part of my project, we need to implement custom JS objects using JavaScriptCore API. I am seeking help in implementing in implementing one of the requirement and its possibility of accomplishing it in Webkit/JavaScriptcore. So, the requirement is, We need to add custom JS object , lets

Re: [webkit-dev] parallel controls in JavaScriptCore engine

2010-06-28 Thread Adam Barth
I'm not sure if there's a short-cut, but you essentially want a JavaScript engine that uses continuation-passing style: http://en.wikipedia.org/wiki/Continuation-passing_style Certainly doable but likely difficult. Adam On Mon, Jun 28, 2010 at 1:30 AM, Srinivasa Rao Edara

Re: [webkit-dev] parallel controls in JavaScriptCore engine

2010-06-28 Thread Zoltan Herczeg
Hi, why don't you simply use a workaround? script function success() { alert(Success); continueTask(true); } function failure() { alert(Failure); continueTask(false); } function continueTask(success) { x= 10+1; } /script Zoltan Hello, As part of my project, we

Re: [webkit-dev] parallel controls in JavaScriptCore engine

2010-06-28 Thread Geoffrey Garen
So my question here is, is this really possible to stop execution at one place and execute some thing else and resume back to previous execution point with JavaScript engine of Webkit. Yes. I have tried this using two threads by blocking the wait using mutex and calling success/failure