Files
Joyee CheungandJoyee Cheung 8ee5b26f86 deps: V8: backport bef0d9c1bc90
Original commit message:

    [api] Add V8::GetWasmMemoryReservationSizeInBytes()

    When the system does not have enough virtual memory for the wasm
    cage, installing the trap handler would cause any code allocating
    wasm memory to throw. Therefore it's useful for the embedder to
    know when the system doesn't have enough virtual address space
    to allocate enough wasm cages and in that case, skip the
    trap handler installation so that wasm code can at least work
    (even not at the maximal performance).

    Node.js previously has a command line option
    --disable-wasm-trap-handler to fully disable trap-based bound checks,
    this new API would allow it to adapt automatically while keeping the
    optimization in the happy path, since it's not always possible for
    end users to opt-into disabling trap-based bound checks (for example,
    when a VS Code Server is loaded in a remote server for debugging).

    Refs: https://github.com/nodejs/node/pull/62132
    Refs: https://github.com/microsoft/vscode/issues/251777
    Change-Id: I345c076af2b2b47700e5716b49c3133fdf8a0981
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7638233
    Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
    Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
    Commit-Queue: Joyee Cheung <joyee@igalia.com>
    Reviewed-by: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#105702}

Refs: https://github.com/v8/v8/commit/bef0d9c1bc90357ef5e654b25fcb4ef9f74b591c
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62132
Refs: https://github.com/microsoft/vscode/issues/251777
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7638233
Reviewed-By: Aditi Singh <aditisingh1400@gmail.com>
2026-04-02 22:41:30 +00:00
..
2025-11-13 15:08:26 +01:00
2025-05-02 15:06:53 +02:00
2025-10-04 18:47:18 +02:00
2025-05-02 15:06:53 +02:00
2025-10-23 07:36:34 +02:00
2025-10-04 18:47:18 +02:00
2025-11-13 15:08:26 +01:00
2025-10-23 07:36:34 +02:00
2025-05-02 15:06:53 +02:00
2025-10-23 07:36:34 +02:00
2024-08-16 16:03:01 +02:00
2025-10-04 18:47:18 +02:00
2025-05-02 15:06:53 +02:00
2025-11-13 15:08:26 +01:00
2025-05-02 15:06:53 +02:00
2025-05-02 15:06:53 +02:00
2025-10-23 07:36:34 +02:00
2025-11-13 15:08:26 +01:00
2025-10-04 18:47:18 +02:00
2025-10-04 18:47:18 +02:00
2025-10-23 07:36:34 +02:00
2025-11-13 15:08:26 +01:00
2025-11-13 15:08:26 +01:00
2025-11-13 15:08:26 +01:00
2025-11-13 15:08:26 +01:00
2025-10-23 07:36:34 +02:00
2024-08-16 16:03:01 +02:00
2025-05-02 15:06:53 +02:00
2025-05-02 15:06:53 +02:00
2025-10-04 18:47:18 +02:00
2025-10-15 11:41:53 +00:00
2024-08-16 16:03:01 +02:00
2025-11-13 15:08:26 +01:00
2025-05-02 15:06:53 +02:00
2025-10-04 18:47:18 +02:00
2024-09-19 14:25:34 +00:00
2025-05-02 15:06:53 +02:00
2026-01-20 13:02:36 +00:00
2025-11-13 15:08:26 +01:00
2025-05-02 15:06:53 +02:00