aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljscodegenerator_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler/qqmljscodegenerator_p.h')
-rw-r--r--src/qmlcompiler/qqmljscodegenerator_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljscodegenerator_p.h b/src/qmlcompiler/qqmljscodegenerator_p.h
index a363629924..1048623bff 100644
--- a/src/qmlcompiler/qqmljscodegenerator_p.h
+++ b/src/qmlcompiler/qqmljscodegenerator_p.h
@@ -347,6 +347,11 @@ private:
return m_typeResolver->jsGlobalObject()->property(u"Math"_qs).type();
}
+ bool isArgument(int registerIndex) const
+ {
+ return registerIndex >= QV4::CallData::OffsetCount && registerIndex < firstRegisterIndex();
+ }
+
int firstRegisterIndex() const
{
return QV4::CallData::OffsetCount + m_function->argumentTypes.count();