summaryrefslogtreecommitdiff
path: root/fxjs/cfx_v8.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cfx_v8.h')
-rw-r--r--fxjs/cfx_v8.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fxjs/cfx_v8.h b/fxjs/cfx_v8.h
index 2f9794c243..08a18935ea 100644
--- a/fxjs/cfx_v8.h
+++ b/fxjs/cfx_v8.h
@@ -65,4 +65,11 @@ class CFX_V8 {
v8::Isolate* m_isolate;
};
+class CFX_V8ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
+ static const size_t kMaxAllowedBytes = 0x10000000;
+ void* Allocate(size_t length) override;
+ void* AllocateUninitialized(size_t length) override;
+ void Free(void* data, size_t length) override;
+};
+
#endif // FXJS_CFX_V8_H_