diff options
author | Lars Knoll <[email protected]> | 2015-01-10 17:55:29 +0100 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2015-01-20 13:29:59 +0100 |
commit | 8a23c8a613b5eb360a48ee6c64ea3507caf878e2 (patch) | |
tree | 02282bda7d9f120389b5ea1341007d3617a4103f /src/qml/jsruntime/qv4object_p.h | |
parent | 4690cc0cd3afa3bb0361da2b01834762b6c69646 (diff) |
Move vtable out of internalClass
We can move the internalClass to Object later on, and such save
having the internalClass on lots of Heap objects.
This commit basically adds and starts making use of a new
vtable pointer in Heap::Base. In addition, the construction
methods in the memory manager now automatically setup the
correct vtable.
Removing the vtable code from InternalClass and moving it into
Object will come in a separate commit
Change-Id: If49e8d73c769bf65bf47fe4dbf8b9546c8019dbc
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4object_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4object_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h index 298779906b..939b14f4d2 100644 --- a/src/qml/jsruntime/qv4object_p.h +++ b/src/qml/jsruntime/qv4object_p.h @@ -77,7 +77,7 @@ struct Q_QML_EXPORT Object: Managed { const Property *propertyAt(uint index) const { return d()->propertyAt(index); } Property *propertyAt(uint index) { return d()->propertyAt(index); } - const ObjectVTable *vtable() const { return reinterpret_cast<const ObjectVTable *>(internalClass()->vtable); } + const ObjectVTable *vtable() const { return reinterpret_cast<const ObjectVTable *>(d()->vtable); } Heap::Object *prototype() const { return d()->prototype; } bool setPrototype(Object *proto); |