diff options
Diffstat (limited to 'src/qml/jsruntime/qv4function_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4function_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h index 03529407ab..6c62881998 100644 --- a/src/qml/jsruntime/qv4function_p.h +++ b/src/qml/jsruntime/qv4function_p.h @@ -54,6 +54,7 @@ #include <private/qqmlglobal_p.h> #include <private/qv4compileddata_p.h> #include <private/qv4context_p.h> +#include <private/qv4vme_moth_p.h> QT_BEGIN_NAMESPACE @@ -63,12 +64,11 @@ struct Q_QML_EXPORT Function { const CompiledData::Function *compiledFunction; CompiledData::CompilationUnit *compilationUnit; - ReturnedValue call(CallData *callData) { - return code(callData, this); + ReturnedValue call(const Value *thisObject, const Value *argv, int argc, const ExecutionContext *context) { + return Moth::VME::exec(this, thisObject, argv, argc, context); } - - typedef ReturnedValue (*Code)(CallData *, Function *); + typedef ReturnedValue (*Code)(const FunctionObject *fo, const Value *thisObject, const Value *argv, int argc); Code code; const uchar *codeData; |