diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-08-27 12:17:21 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-09-22 08:19:56 +0000 |
commit | 17a0c271e0ec606d15fc87dab23b2e3750c0e301 (patch) | |
tree | e1c5fb1065e687897388adb7cdbfa4fbbf707af7 /src/qml/jsruntime/qv4object_p.h | |
parent | 833c99db20a6ccbf337d77855098141e008b04ee (diff) |
Move more objects over to the new allocation scheme
Change-Id: I0241efe10d115f8e4a646f840e47e220eb6cfc18
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4object_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4object_p.h | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h index 636755808b..578e4065c3 100644 --- a/src/qml/jsruntime/qv4object_p.h +++ b/src/qml/jsruntime/qv4object_p.h @@ -340,32 +340,18 @@ inline Object::Object(ExecutionEngine *engine) } struct BooleanObject : Object { - BooleanObject(InternalClass *ic, QV4::Object *prototype) - : Object(ic, prototype), - b(false) - { - } - - BooleanObject(ExecutionEngine *engine, bool b) - : Object(engine->emptyClass, engine->booleanPrototype()), - b(b) - { - } + BooleanObject() {} + BooleanObject(bool b) + : b(b) + {} bool b; }; struct NumberObject : Object { - NumberObject(InternalClass *ic, QV4::Object *prototype) - : Object(ic, prototype), - value(0) - { - } - - NumberObject(ExecutionEngine *engine, double val) - : Object(engine->emptyClass, engine->numberPrototype()), - value(val) - { - } + NumberObject() {} + NumberObject(double val) + : value(val) + {} double value; }; @@ -375,7 +361,6 @@ struct ArrayObject : Object { }; ArrayObject() - : Heap::Object() { init(); } ArrayObject(const QStringList &list); void init() |