aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4object_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-04-03 13:00:49 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-07-22 13:48:53 +0200
commit4427576fe548b6f9f8acba6a5ac3082fbbb99724 (patch)
tree309f80779da95f337dd869e1990ffd4f0bb9b724 /src/qml/jsruntime/qv4object_p.h
parent08a3c0edeb3cdfa15a9fecdfb4c7c1ab82227437 (diff)
Avoid calling destroy() on most objects
The method is now optional, and we can simply avoid calling it if all members an object has are themselves garbage collected. Change-Id: If560fce051908bcc10409ead1a7d8a5bd5fa71d2 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4object_p.h')
-rw-r--r--src/qml/jsruntime/qv4object_p.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h
index 5e32bb6c34..666b6c91f9 100644
--- a/src/qml/jsruntime/qv4object_p.h
+++ b/src/qml/jsruntime/qv4object_p.h
@@ -116,7 +116,6 @@ struct Q_QML_EXPORT Object: Managed {
Object(ExecutionEngine *engine);
Object(InternalClass *internalClass);
- ~Object();
const ObjectVTable *vtable() const { return reinterpret_cast<const ObjectVTable *>(internalClass->vtable); }
Object *prototype() const { return internalClass->prototype; }
@@ -270,7 +269,6 @@ public:
inline ReturnedValue call(CallData *d)
{ return vtable()->call(this, d); }
protected:
- static void destroy(Managed *that);
static void markObjects(Managed *that, ExecutionEngine *e);
static ReturnedValue construct(Managed *m, CallData *);
static ReturnedValue call(Managed *m, CallData *);