node/deps/v8/test/unittests/api
Joyee Cheung 13fb819110
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: bef0d9c1bc
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
Refs: https://github.com/microsoft/vscode/issues/251777
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7638233
PR-URL: https://github.com/nodejs/node/pull/61898
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2026-04-24 18:01:32 +02:00
..
access-check-unittest.cc
accessor-unittest.cc
api-icu-unittest.cc
api-wasm-unittest.cc deps: V8: backport bef0d9c1bc90 2026-04-24 18:01:32 +02:00
context-unittest.cc
deserialize-unittest.cc
dictionary-template-unittest.cc
exception-unittest.cc
gc-callbacks-unittest.cc
interceptor-unittest.cc deps: update V8 to 14.6.202.33 2026-04-24 18:01:28 +02:00
isolate-unittest.cc deps: update V8 to 14.6.202.33 2026-04-24 18:01:28 +02:00
remote-object-unittest.cc
resource-constraints-unittest.cc deps: update V8 to 14.6.202.33 2026-04-24 18:01:28 +02:00
smi-tagging-unittest.cc
v8-array-buffer-unittest.cc deps: V8: cherry-pick c5ff7c4d6cde 2026-01-28 16:32:54 +00:00
v8-array-unittest.cc
v8-maybe-unittest.cc
v8-memory-span-unittest.cc
v8-object-unittest.cc
v8-script-unittest.cc
v8-value-unittest.cc