Feature description:
Eng owner Blink: jochen@chromium.org
Eng owner V8: yangguo@chromium.org
Product owner: jochen@chromium.org
Design doc: https://docs.google.com/document/d/1MvStRV_ZqeA9DqXYFpigMjDeI15LN_y0y6MoU-HYdKI/edit
V8's snapshot mechanism currently only works for the vanilla context provided by V8. It does not include anything installed afterwards by Blink. It would be great if it did.
Work items in V8:
- New V8 API for creating snapshot from arbitrarily modified contexts
- Support for multiple context snapshots in V8 (for vanilla context and one altered by Blink)
- Support to serialize and deserialize raw pointers given by the embedder
Work items in Blink:
- Separate things always to be installed, which can be part of the snapshot, and things that may or may not be installed, which cannot be part of the snapshot
- Plumbing to set up a context from scratch for snapshotting
- Plumbing to set up a context deserialized from a snapshot to use
- Plumbing to set up a context from scratch to use, in case deserialization fails or a function entry hook is defined
Comment 1 by jochen@chromium.org
, Jun 7 2016