summaryrefslogtreecommitdiffstats
path: root/chromium/v8/include/v8-array-buffer.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-09-29 16:16:15 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-11-09 10:04:06 +0000
commita95a7417ad456115a1ef2da4bb8320531c0821f1 (patch)
treeedcd59279e486d2fd4a8f88a7ed025bcf925c6e6 /chromium/v8/include/v8-array-buffer.h
parent33fc33aa94d4add0878ec30dc818e34e1dd3cc2a (diff)
BASELINE: Update Chromium to 106.0.5249.126
Change-Id: Ib0bb21c437a7d1686e21c33f2d329f2ac425b7ab Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/438936 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/v8/include/v8-array-buffer.h')
-rw-r--r--chromium/v8/include/v8-array-buffer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chromium/v8/include/v8-array-buffer.h b/chromium/v8/include/v8-array-buffer.h
index e9047b79ce3..bab840f82c1 100644
--- a/chromium/v8/include/v8-array-buffer.h
+++ b/chromium/v8/include/v8-array-buffer.h
@@ -256,6 +256,12 @@ class V8_EXPORT ArrayBuffer : public Object {
*/
std::shared_ptr<BackingStore> GetBackingStore();
+ /**
+ * More efficient shortcut for GetBackingStore()->Data(). The returned pointer
+ * is valid as long as the ArrayBuffer is alive.
+ */
+ void* Data() const;
+
V8_INLINE static ArrayBuffer* Cast(Value* value) {
#ifdef V8_ENABLE_CHECKS
CheckCast(value);
@@ -414,6 +420,12 @@ class V8_EXPORT SharedArrayBuffer : public Object {
*/
std::shared_ptr<BackingStore> GetBackingStore();
+ /**
+ * More efficient shortcut for GetBackingStore()->Data(). The returned pointer
+ * is valid as long as the ArrayBuffer is alive.
+ */
+ void* Data() const;
+
V8_INLINE static SharedArrayBuffer* Cast(Value* value) {
#ifdef V8_ENABLE_CHECKS
CheckCast(value);