diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-08-24 12:03:12 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-08-25 08:30:00 +0000 |
commit | 860807b22ab4f7d1c55ce69bb7711dcc777ceefa (patch) | |
tree | 5fbec31ef6ec7bc87353dc51fae0124ef3838753 /src/qml/jsruntime/qv4engine_p.h | |
parent | dd9a6999b674a9197eabbea96b1e5a34c22a8aab (diff) |
Implement support for SharedArrayBuffer
We'll still need to hook this up with Worker threads to become
useful.
Change-Id: Iedae7307edd76368aeba163731856ebe9b32c6b6
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index e11e607bd1..0f4a4a75a2 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -162,6 +162,7 @@ public: #if QT_CONFIG(qml_sequence_object) SequenceProto, #endif + SharedArrayBufferProto, ArrayBufferProto, DataViewProto, SetProto, @@ -193,6 +194,7 @@ public: SyntaxError_Ctor, TypeError_Ctor, URIError_Ctor, + SharedArrayBuffer_Ctor, ArrayBuffer_Ctor, DataView_Ctor, Set_Ctor, @@ -229,6 +231,7 @@ public: FunctionObject *syntaxErrorCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + SyntaxError_Ctor); } FunctionObject *typeErrorCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + TypeError_Ctor); } FunctionObject *uRIErrorCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + URIError_Ctor); } + FunctionObject *sharedArrayBufferCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + SharedArrayBuffer_Ctor); } FunctionObject *arrayBufferCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + ArrayBuffer_Ctor); } FunctionObject *dataViewCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + DataView_Ctor); } FunctionObject *setCtor() const { return reinterpret_cast<FunctionObject *>(jsObjects + Set_Ctor); } @@ -262,6 +265,7 @@ public: Object *sequencePrototype() const { return reinterpret_cast<Object *>(jsObjects + SequenceProto); } #endif + Object *sharedArrayBufferPrototype() const { return reinterpret_cast<Object *>(jsObjects + SharedArrayBufferProto); } Object *arrayBufferPrototype() const { return reinterpret_cast<Object *>(jsObjects + ArrayBufferProto); } Object *dataViewPrototype() const { return reinterpret_cast<Object *>(jsObjects + DataViewProto); } Object *setPrototype() const { return reinterpret_cast<Object *>(jsObjects + SetProto); } |