aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-06-25 23:27:24 +0200
committerLars Knoll <lars.knoll@qt.io>2018-07-03 08:08:28 +0000
commit12d8b8c9e4ff05707df7bda479e69d997799c486 (patch)
treeb1fbaeade75cdbcaf7f028e3c05f342422b3e544 /src/qml/memory
parent6f79b7519f10ba24485769cf9bf2922e002bd46a (diff)
Move the Vtable for Managed objects into it's own file
Move both the code from qv4object and qv4managed into a new qv4vtable_p.h file. Change-Id: Ib1d58120b6c3b9b779b2692526c7e40a5265c4db Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/memory')
-rw-r--r--src/qml/memory/qv4heap_p.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/qml/memory/qv4heap_p.h b/src/qml/memory/qv4heap_p.h
index 84208b51e0..07af5a6f7a 100644
--- a/src/qml/memory/qv4heap_p.h
+++ b/src/qml/memory/qv4heap_p.h
@@ -54,6 +54,7 @@
#include <private/qv4global_p.h>
#include <private/qv4mmdefs_p.h>
#include <private/qv4writebarrier_p.h>
+#include <private/qv4vtable_p.h>
#include <QSharedPointer>
// To check if Heap::Base::init is called (meaning, all subclasses did their init and called their
@@ -64,26 +65,6 @@ QT_BEGIN_NAMESPACE
namespace QV4 {
-struct VTable
-{
- const VTable * const parent;
- quint32 inlinePropertyOffset : 16;
- quint32 nInlineProperties : 16;
- quint8 isExecutionContext;
- quint8 isString;
- quint8 isObject;
- quint8 isFunctionObject;
- quint8 isErrorObject;
- quint8 isArrayData;
- quint8 isStringOrSymbol;
- quint8 type;
- quint8 unused[4];
- const char *className;
- void (*destroy)(Heap::Base *);
- void (*markObjects)(Heap::Base *, MarkStack *markStack);
- bool (*isEqualTo)(Managed *m, Managed *other);
-};
-
namespace Heap {
template <typename T, size_t o>