Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Native functions can be included in the snapshot with newer V8. #1

@hashseed

Description

@hashseed

I'm the author and maintainer of V8's custom start-up snapshot. I just came across this project recently. I think you would find this design document very interesting.

A few highlights:

  • FunctionTemplates and ObjectTemplates and their instances can now be serialized, provided that the native function address is provided to v8::SnapshotCreator.
  • FunctionTemplates and ObjectTemplates objects can be extracted from the snapshot, so there is no need to set them up from scratch.
  • Content of internal fields (set by the embedder) in an object can now be serialized/deserializer through user-defined callbacks.
  • Multiple context snapshots per start-up snapshot blob.

Please let me know if you are interested and have questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions