deps: V8: cherry-pick b5c917ee80cb
Original commit message:
[api] New function for reallocating ArrayBuffer backing store
This patch adds a new BackingStore::Reallocate function that internally
uses a new ArrayBuffer::Allocator::Reallocate provided by the embedder.
The default implementation of the function simply copies the backing
store. The embedder can override the function and provide a more
efficient implementation e.g. using realloc.
Bug: v8:9908, v8:9380
Change-Id: I2179c80ba199c045b6900c620a813916150e7098
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2007274
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by:
Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66044}
Refs: https://github.com/v8/v8/commit/b5c917ee80cbf33b18a96bfcf67a4c598ea85722
PR-URL: https://github.com/nodejs/node/pull/32885
Reviewed-By:
Michaël Zasso <targos@protonmail.com>
Reviewed-By:
Ujjwal Sharma <ryzokuken@disroot.org>
Reviewed-By:
Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By:
Beth Griggs <Bethany.Griggs@uk.ibm.com>
parent
552cee0c
Please register or sign in to comment