On Fri, Dec 13, 2013 at 3:22 AM, shyam kumar <[email protected]> wrote:

> I want to know what v8 snapshot contains.I understand that it stores the
> javascript context at run time.
>

To be a bit more exact, the snapshot consists of 2 parts: One bigger
per-Isolate part and a smaller per-Context part. This way one can quickly
create new Contexts by "bolting on" the small part onto the big one. Both
parts are in the snapshot.cc generated by mksnapshot during build time,
which loads the needed JavaScript files and serializes them into 2 C++
arrays.


> I would like to know that after saving the snapshot into file ,how do we
> pass the saved snaphot to the v8 and also how do we pass the external
> javascript to v8 . [...]
>

This is all done automatically when you mention your additional *.js files
in tools/gyp/v8.gyp.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to