Add reference counting to the VM functions
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 9 Aug 2013 14:45:02 +0000 (16:45 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 12 Aug 2013 11:29:27 +0000 (13:29 +0200)
commit7c2adbbb6cccefd202164049dc9144b4d13aec0a
tree7410500f53aac1b8fe2a46729db48732744ebf4b
parent42dc821dd68cc63aa8300f2678639dbaacda1057
Add reference counting to the VM functions

This reduces memory pressure, keep engine->functions small and thus makes back
trace lookup faster. It became visible for example in the QtQuickControls
auto-tests that use plenty of loaders and we ended up with 30k+ functions.

Change-Id: Iaa5981f44e1e49ad9417a50c1e6a74946090dd28
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qv4isel_p.cpp
src/qml/jsruntime/qv4engine.cpp
src/qml/jsruntime/qv4function.cpp
src/qml/jsruntime/qv4function_p.h
src/qml/jsruntime/qv4functionobject.cpp
src/qml/jsruntime/qv4functionobject_p.h
src/qml/jsruntime/qv4script.cpp
src/qml/jsruntime/qv4script_p.h