aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4function_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-11-29 22:39:28 +0100
committerLars Knoll <lars.knoll@qt.io>2016-12-06 13:01:41 +0000
commit54c79346f1929ff14673e1ab40a1bfd66ba6e2c5 (patch)
tree67261b9c22e0fe6d4ca7ba3c13f5e4d89460766b /src/qml/jsruntime/qv4function_p.h
parent83aa1933c82333b7ec5128442ac9ee2161387491 (diff)
Use QV4::Function instead of the FunctionObject in CallContext
The prepares for being able to call binding code without having to create a full FunctionObject. Change-Id: I5f0dcaa4d1ae8876554cac82597351801588bc02 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4function_p.h')
-rw-r--r--src/qml/jsruntime/qv4function_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h
index 12094a0943..beba5a1fd6 100644
--- a/src/qml/jsruntime/qv4function_p.h
+++ b/src/qml/jsruntime/qv4function_p.h
@@ -53,6 +53,7 @@
#include "qv4global_p.h"
#include <private/qqmlglobal_p.h>
#include <private/qv4compileddata_p.h>
+#include <private/qv4context_p.h>
QT_BEGIN_NAMESPACE
@@ -97,6 +98,13 @@ struct Q_QML_EXPORT Function {
};
+
+inline unsigned int Heap::CallContext::formalParameterCount() const
+{
+ return v4Function ? v4Function->nFormals : 0;
+}
+
+
}
QT_END_NAMESPACE