Files
node/deps
Joyee Cheung 7c7f30ed17 deps: V8: cherry-pick 3d0f462a17ff
Original commit message:

    [api] Add index-based module resolution in InstantiateModule()

    Add new InstantiateModule() overload that allows embedders to identify
    modules requests by index in the module requests array rather than
    using specifier and import attributes. When embedders want to fetch
    all the modules using information from module->GetModuleRequests()
    before calling InstantiateModule() instead of having to do the fetching
    inside the InstantiateModule() callback, they could just maintain a simple array of modules indexed by module request positions and
    look up the fetched the module by index in the new callback.
    Previously this has to be done by mapping from specifier and import
    attributes to module objects cached on the embedder side, leading to an overhead to hash the specifier and import attributes for each module request.

    Refs: https://github.com/nodejs/node/pull/59396
    Bug: 435317398
    Change-Id: Ie017d2f3ccc605e0f58aa423504b5fa5fdbcc633
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6804466
    Commit-Queue: Joyee Cheung <joyee@igalia.com>
    Reviewed-by: Camillo Bruni <cbruni@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#102613}

Refs: 3d0f462a17
PR-URL: https://github.com/nodejs/node/pull/59396
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/6804466
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2025-10-15 11:41:53 +00:00
..
2025-06-23 20:35:29 +00:00
2025-10-02 13:45:04 +00:00
2025-09-30 15:34:34 +02:00
2025-07-22 01:10:31 +00:00
2025-04-16 22:08:52 +00:00
2025-05-07 14:21:52 +00:00
2025-09-27 12:17:49 -07:00
2025-10-11 21:22:44 +00:00
2025-06-10 01:07:41 +00:00
2025-08-05 00:53:18 +00:00
2025-09-11 17:21:54 +00:00
2025-09-09 01:03:59 +00:00
2025-10-15 11:41:53 +00:00
2025-06-10 01:07:34 +00:00
2025-04-22 00:52:12 +00:00