From 1f8ab5fa975b2ec9172090f5665bb77cc5630584 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 3 Aug 2017 12:00:19 +0200 Subject: Unify QV4::Function::internalClass and the ic used in CallContext Set the internal class of the V4 function on the CallContext, as that one is describing it's layout, and use it to lookup variables. Change-Id: I49d9b9afe1f504fbd059d6a350b7a4e62e2e505b Reviewed-by: Erik Verbruggen --- src/qml/jsruntime/qv4function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4function.cpp') diff --git a/src/qml/jsruntime/qv4function.cpp b/src/qml/jsruntime/qv4function.cpp index 4c8117527c..e2efded3b8 100644 --- a/src/qml/jsruntime/qv4function.cpp +++ b/src/qml/jsruntime/qv4function.cpp @@ -59,7 +59,7 @@ Function::Function(ExecutionEngine *engine, CompiledData::CompilationUnit *unit, { Q_UNUSED(engine); - internalClass = engine->internalClasses[EngineBase::Class_Empty]; + internalClass = engine->internalClasses[EngineBase::Class_CallContext]; const CompiledData::LEUInt32 *formalsIndices = compiledFunction->formalsTable(); // iterate backwards, so we get the right ordering for duplicate names Scope scope(engine); -- cgit v1.2.3