Remove the realArgumentsCount member in CallContext
authorLars Knoll <lars.knoll@theqtcompany.com>
Mon, 19 Jan 2015 15:29:48 +0000 (16:29 +0100)
committerLars Knoll <lars.knoll@digia.com>
Fri, 23 Jan 2015 11:30:43 +0000 (12:30 +0100)
commitd24b7fb904771ba078ac52e05984b23327ddff3b
tree4c67db1a53556187049ba920eabc0137cb4770d9
parent0c2ab6e20ca23e74055d0a95539315cf1bf360bf
Remove the realArgumentsCount member in CallContext

The data is easily available through the CallData, only used by
the Arguments object and we save a pointer in Heap::CallData this way.

For this to work, let CallData::argc always return the real number
of arguments passed into the function.

Change-Id: I59c7c41e8c1af160db09fa794977ab7084c9e12d
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4argumentsobject.cpp
src/qml/jsruntime/qv4context.cpp
src/qml/jsruntime/qv4context_p.h
src/qml/jsruntime/qv4functionobject.cpp