summaryrefslogtreecommitdiff
path: root/deps/v8/include
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-03-04 13:27:39 +0100
committerMichaël Zasso <targos@protonmail.com>2019-03-14 18:50:15 +0100
commitbea1a386a32afa2879622450549886b0e0bdeead (patch)
treecf7470fdd1d14c4a906c345b1d58a02d425e17c3 /deps/v8/include
parentcf649c9b0243612d4a75ad99c328c0feaed4c3b9 (diff)
downloadandroid-node-v8-bea1a386a32afa2879622450549886b0e0bdeead.tar.gz
android-node-v8-bea1a386a32afa2879622450549886b0e0bdeead.tar.bz2
android-node-v8-bea1a386a32afa2879622450549886b0e0bdeead.zip
deps: V8: cherry-pick d3308d0
Original commit message: [api] Add `Isolate::GetArrayBufferAllocator()` This allows non-monolithic embedders to always allocate memory for ArrayBuffer instances using the right allocation method. This is based on a patch that Electron is currently using. Refs: https://github.com/electron/electron/blob/1898f9162073910c05958295c612deec6121a892/patches/common/v8/array_buffer.patch Change-Id: I39a614343118a0594aab48699a99cc2aad5b7ba9 Reviewed-on: https://chromium-review.googlesource.com/c/1462003 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#59697} Refs: https://github.com/v8/v8/commit/d3308d042c9637958491333831c33335ab9fc734 PR-URL: https://github.com/nodejs/node/pull/25852 Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'deps/v8/include')
-rw-r--r--deps/v8/include/v8.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h
index b23114f4ff..97e3584d0b 100644
--- a/deps/v8/include/v8.h
+++ b/deps/v8/include/v8.h
@@ -7700,6 +7700,9 @@ class V8_EXPORT Isolate {
*/
void SetIdle(bool is_idle);
+ /** Returns the ArrayBuffer::Allocator used in this isolate. */
+ ArrayBuffer::Allocator* GetArrayBufferAllocator();
+
/** Returns true if this isolate has a current context. */
bool InContext();