summaryrefslogtreecommitdiff
path: root/src/qml/jsruntime/qv4function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4function.cpp')
-rw-r--r--src/qml/jsruntime/qv4function.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4function.cpp b/src/qml/jsruntime/qv4function.cpp
index 95a7506c80..a34f93be31 100644
--- a/src/qml/jsruntime/qv4function.cpp
+++ b/src/qml/jsruntime/qv4function.cpp
@@ -138,6 +138,18 @@ Function::Function(ExecutionEngine *engine, ExecutableCompilationUnit *unit,
nFormals = compiledFunction->nFormals;
}
+Function::Function(ExecutionEngine *engine, const QQmlPrivate::AOTCompiledFunction *aotFunction)
+ : FunctionData(nullptr)
+ , compiledFunction(nullptr)
+ , codeData(nullptr)
+ , jittedCode(nullptr)
+ , codeRef(nullptr)
+ , aotFunction(aotFunction)
+{
+ internalClass = engine->internalClasses(EngineBase::Class_CallContext);
+ nFormals = aotFunction->argumentTypes.length();
+}
+
Function::~Function()
{
if (codeRef) {