diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-02-03 21:05:43 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-03-09 08:58:52 +0000 |
commit | 1a61d609345b0222c41f93f445a6fd517a76cf48 (patch) | |
tree | a46cd6d9e5d4dfe557d0de931c8253f43d21a0b0 /src/qml/jsruntime/qv4value_p.h | |
parent | d7aa952e143accc18d54707d956d019272197078 (diff) |
move locals over to be write barrier safe
Change-Id: I56b1dab62ff432273ee8549b0496bd0f3fc655ea
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4value_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4value_p.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h index 4c46eccbd3..bb2132c85e 100644 --- a/src/qml/jsruntime/qv4value_p.h +++ b/src/qml/jsruntime/qv4value_p.h @@ -717,7 +717,7 @@ struct HeapValue : Value { }; template <size_t offset> -struct HeapValueArray { +struct ValueArray { uint size; uint alloc; Value values[1]; @@ -754,27 +754,6 @@ struct HeapValueArray { } }; -template <size_t offset> -struct ValueArray { - uint size; - uint alloc; - Value v[1]; - - void set(ExecutionEngine *e, uint index, Value newVal) { - Q_UNUSED(e); - v[index] = newVal; - } - - inline Value &operator[] (uint index) { - Q_ASSERT(index < alloc); - return v[index]; - } - inline const Value &operator[] (uint index) const { - Q_ASSERT(index < alloc); - return v[index]; - } -}; - } QT_END_NAMESPACE |