diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-03 12:00:19 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-03 10:21:56 +0000 |
commit | 1f8ab5fa975b2ec9172090f5665bb77cc5630584 (patch) | |
tree | 98f37fba9cb0e5553d1cdbdc5448aa633336bdf0 /src/qml/jsruntime/qv4function.cpp | |
parent | 348f24532f2b6b34eebd15207da0c510d6f499d0 (diff) |
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 <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4function.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |