diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-25 21:28:56 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-29 08:51:34 +0000 |
commit | 194b0c303245f3422a9c3651ce82909d79c913b4 (patch) | |
tree | 0355d14f3a5da93f9fcef71057757167840dd00d | |
parent | 07691504d44680cd3c357da621bb92f5026f16b6 (diff) |
Don't copy the bytecode data from the cached compilation unit
There hasn't been a need to copy the data since some time,
as we are not patching the bytecode anymore.
Change-Id: I2303d5a2fceb611933905311aaedb041a78c42ac
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | src/qml/compiler/qv4isel_moth.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/qml/compiler/qv4isel_moth.cpp b/src/qml/compiler/qv4isel_moth.cpp index fb805dce02..82f5225f28 100644 --- a/src/qml/compiler/qv4isel_moth.cpp +++ b/src/qml/compiler/qv4isel_moth.cpp @@ -1457,13 +1457,7 @@ bool CompilationUnit::memoryMapCode(QString *errorString) for (uint i = 0; i < data->functionTableSize; ++i) { const CompiledData::Function *compiledFunction = data->functionAt(i); const char *codePtr = const_cast<const char *>(reinterpret_cast<const char *>(basePtr + compiledFunction->codeOffset)); -#ifdef MOTH_THREADED_INTERPRETER - // for the threaded interpreter we need to make a copy of the data because it needs to be - // modified for the instruction handler addresses. - QByteArray code(codePtr, compiledFunction->codeSize); -#else QByteArray code = QByteArray::fromRawData(codePtr, compiledFunction->codeSize); -#endif codeRefs[i] = code; } |