From 0d1e37e9f50b644c88578aee82859990e7378caf Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 14 Aug 2013 15:44:53 +0200 Subject: Fix writing the function offset table and initialize the pointer to the compiled function in the runtime function Change-Id: I9aed9f394fedc4a4ea334f6ab1b72fe749c64c72 Reviewed-by: Lars Knoll --- src/qml/jsruntime/qv4function_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/jsruntime/qv4function_p.h') diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h index 99b94baf52..f2059139ba 100644 --- a/src/qml/jsruntime/qv4function_p.h +++ b/src/qml/jsruntime/qv4function_p.h @@ -91,6 +91,7 @@ struct Function { int refCount; String *name; + const CompiledData::Function *compiledFunction; CompiledData::CompilationUnit *compilationUnit; Value (*code)(ExecutionContext *, const uchar *); const uchar *codeData; @@ -119,6 +120,7 @@ struct Function { Function(ExecutionEngine *engine, String *name) : refCount(0) , name(name) + , compiledFunction(0) , compilationUnit(0) , code(0) , codeData(0) -- cgit v1.2.3