summaryrefslogtreecommitdiff
path: root/src/env-inl.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-02-18 17:30:42 +0100
committerAnna Henningsen <anna@addaleax.net>2019-02-25 02:00:44 +0100
commit5c0e18fd407ec5766a8f326dbe3c870d3594ab7d (patch)
tree50a99eda8a25681e2aa5219aad9d7da8a98716a6 /src/env-inl.h
parent23b075d051acf16711de40cb248bf142ab297d47 (diff)
downloadandroid-node-v8-5c0e18fd407ec5766a8f326dbe3c870d3594ab7d.tar.gz
android-node-v8-5c0e18fd407ec5766a8f326dbe3c870d3594ab7d.tar.bz2
android-node-v8-5c0e18fd407ec5766a8f326dbe3c870d3594ab7d.zip
src: make IsolateData store ArrayBufferAllocator
This enables us to identify whether we are using an allocator that we know more about than what the generic `ArrayBuffer::Allocator` API provides, in particular whether it is `malloc()`-compatible. PR-URL: https://github.com/nodejs/node/pull/26207 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/env-inl.h')
-rw-r--r--src/env-inl.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/env-inl.h b/src/env-inl.h
index aca8176056..51c7e0d7b0 100644
--- a/src/env-inl.h
+++ b/src/env-inl.h
@@ -49,8 +49,16 @@ inline uv_loop_t* IsolateData::event_loop() const {
return event_loop_;
}
-inline uint32_t* IsolateData::zero_fill_field() const {
- return zero_fill_field_;
+inline bool IsolateData::uses_node_allocator() const {
+ return uses_node_allocator_;
+}
+
+inline v8::ArrayBuffer::Allocator* IsolateData::allocator() const {
+ return allocator_;
+}
+
+inline ArrayBufferAllocator* IsolateData::node_allocator() const {
+ return node_allocator_;
}
inline MultiIsolatePlatform* IsolateData::platform() const {