diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2023-12-20 15:47:43 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-01-08 22:30:11 +0100 |
commit | 933f80f345cb04df6ecafe9c76f262553a5a198c (patch) | |
tree | 336ab12536d67c5e6f38b7428cc9d940a75eca0d /src/qml/jit/qv4baselineassembler.cpp | |
parent | 796dd2ab8c7b0e85f2469df9b79f65ca62719c8b (diff) |
QtQml: Move engine-specific data out of base compilation unit
We want to re-use the base compilation unit for different engines. To do
that, we cannot have data in there that belongs to a specific engine.
Pick-to: 6.7
Task-number: QTBUG-120189
Change-Id: I8e43e7ec6c1cd33249dc4ed15fec16babc6d06fb
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jit/qv4baselineassembler.cpp')
-rw-r--r-- | src/qml/jit/qv4baselineassembler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jit/qv4baselineassembler.cpp b/src/qml/jit/qv4baselineassembler.cpp index 156266a234..496624c752 100644 --- a/src/qml/jit/qv4baselineassembler.cpp +++ b/src/qml/jit/qv4baselineassembler.cpp @@ -903,7 +903,7 @@ void BaselineAssembler::storeHeapObject(int reg) void BaselineAssembler::loadImport(int index) { Address addr = pasm()->loadCompilationUnitPtr(PlatformAssembler::ScratchRegister); - addr.offset = offsetof(QV4::CompiledData::CompilationUnitBase, imports); + addr.offset = offsetof(QV4::CompilationUnitRuntimeData, imports); pasm()->loadPtr(addr, PlatformAssembler::ScratchRegister); addr.offset = index * int(sizeof(QV4::Value*)); pasm()->loadPtr(addr, PlatformAssembler::ScratchRegister); |