Allocate the ArrayData object and it's data together
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 24 Jan 2014 13:29:40 +0000 (14:29 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 24 Jan 2014 13:32:37 +0000 (14:32 +0100)
commitab2b5219876a60867e67b47827196114d238155d
treec2ecc7d22dcb8c4eadeede664ba97b3be64baffe
parentc53fef423a8f607e1443b1d409712864f8cac9d5
Allocate the ArrayData object and it's data together

Reduce the amount of allocations required for Arrays, and
allows freeing the array data more easily in the GC.

Change-Id: I3e3213f089c45c83a227038ce444aa60b2735b7f
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4argumentsobject.cpp
src/qml/jsruntime/qv4arraydata.cpp
src/qml/jsruntime/qv4arraydata_p.h
src/qml/jsruntime/qv4engine.cpp
src/qml/jsruntime/qv4object.cpp
src/qml/jsruntime/qv4object_p.h
src/qml/jsruntime/qv4objectproto.cpp