• Sathya Gunasekaran's avatar
    [Modules] Introduce ScriptOrModule and HostDefinedOptions · dbfe4a49
    Sathya Gunasekaran authored
    This patch introduces a new container type ScriptOrModule which
    provides the name and the host defined options of the script/module.
    
    This patch also introduces a new PrimitivesArray that can hold
    Primitive values, which the embedder can use to store metadata.
    
    The HostDefinedOptions is passed to V8 through the ScriptOrigin, and
    passed back to the embedder through HostImportModuleDynamically for
    module loading.
    
    Bug: v8:5785, v8:6658, v8:6683
    Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
    Change-Id: I56c26fc9a680b273ac0a6691e5ad75f15b8dc80a
    Reviewed-on: https://chromium-review.googlesource.com/622158Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
    Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#47724}
    dbfe4a49
script.h 7.77 KB