diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-29 13:12:17 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-30 08:09:13 +0000 |
commit | 260a24800dcdf3fa6ad4a8d0abaa0c8b23aae511 (patch) | |
tree | 7382fd5a6f00ffd05ae45a86e803d7454d070ad3 /src/qml/jsruntime/qv4function.cpp | |
parent | e931b123e90ca0162e112148de5cd35f149e4841 (diff) |
Remove the codeRefs in the Moth::CompilationUnit
There's no point in allocating that vector of byte arrays,
if we can directly embed those int the CompiledData and
reference it from there.
Change-Id: I8fc92b1efaca5a9646f40fc84a2ac4191c8f3444
Reviewed-by: Simon Hausmann <simon.hausmann@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 681a5ba1cf..594810e498 100644 --- a/src/qml/jsruntime/qv4function.cpp +++ b/src/qml/jsruntime/qv4function.cpp @@ -55,7 +55,7 @@ Function::Function(ExecutionEngine *engine, CompiledData::CompilationUnit *unit, : compiledFunction(function) , compilationUnit(unit) , code(codePtr) - , codeData(0) + , codeData(function->code()) , hasQmlDependencies(function->hasQmlDependencies()) { Q_UNUSED(engine); |