On Tue, Sep 30, 2008 at 10:48 AM, Chaehyun <[EMAIL PROTECTED]> wrote: > > Hi, everyone. > > I 've not yet downloaded the V8 engine; however, I am curious whether > the concept of an idea is posibble or not. > > The basic idea is to decease JavaScript's parsing time in a mobile > phone. We ported Webkit to a target and checked the JavaScript's > execution time. We realized that it takes lots of time to make > intermediate results like a Syntax tree from a source code. > > We tried to make bytecode in a server and send it to a target; as a > result, save a parsing time in the target with SquirrelFish. However, > according to our preview, it seems impossible to execute bytcode alone > without Syntax tree. The Syntax tree of a source code is pretty big, > so we give up the plan, to send both bytecode and syntax tree. > > Now, the question is the machine code from V8 is possible to be > executed without syntax tree. The senario is this. We port V8 engine > to a target. The browser in a target requests the JS file, then, the > server makes bytecode or machine code with V8 and send it. The browser > in the taget receives the bytecode or machine code and V8 executes it, > so that we can save the parsing time.
You could conceivably extend the snapshot functionality with support for this. The snapshot includes the compiled code and the source in one very fast bundle. However there are a number of issues: * The JS engine creating the snapshot needs to be the exact same version as the one on the phone. Zero portability. * The snapshot format is not particularly compact. * There's no security so you need to trust the program source completely and you need to secure the communication channel completely. An alternative might be to have the phone generate its own snapshots and cache them. There's some work involved, but it seems feasible. -- Erik Corry, Software Engineer Google Denmark ApS. CVR nr. 28 86 69 84 c/o Philip & Partners, 7 Vognmagergade, P.O. Box 2227, DK-1018 Copenhagen K, Denmark. --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
