a19c1c8572
- Update to version 5.15.9+kde26: * qml tool: Use QCommandLineParser::process() rather than parse() - Add patch to fix crash on aarch64 (boo#1211628, QTBUG-111935): * 0001-JIT-Add-missing-STORE-LOAD-_ACC-to-CreateCallContext.patch OBS-URL: https://build.opensuse.org/request/show/1091820 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qtdeclarative?expand=0&rev=29
49 lines
1.7 KiB
Diff
49 lines
1.7 KiB
Diff
From cb4f59d2dfbb9def4298688ec87e6b1caf8b622f Mon Sep 17 00:00:00 2001
|
|
From: Ulf Hermann <ulf.hermann@qt.io>
|
|
Date: Wed, 15 Mar 2023 08:59:43 +0100
|
|
Subject: [PATCH] JIT: Add missing {STORE|LOAD}_ACC() to CreateCallContext
|
|
|
|
We cannot assume anything about the accumulator register after calling
|
|
PushCallContext::call(). Also add a note about not needing to re-load
|
|
the accumulator on ThrowException.
|
|
|
|
Pick-to: 6.5 6.2 5.15
|
|
Fixes: QTBUG-111935
|
|
Change-Id: I7196585e1d2697c215f4fe87d8d7ac9b98b622a3
|
|
Reviewed-by: <carl@carlschwan.eu>
|
|
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
|
|
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
|
|
(cherry picked from commit 15ec024152a1d1d99a4934f7b2408e7af7b2552a)
|
|
---
|
|
src/qml/jit/qv4baselinejit.cpp | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/src/qml/jit/qv4baselinejit.cpp b/src/qml/jit/qv4baselinejit.cpp
|
|
index 45150cfffd..5ad53faf95 100644
|
|
--- a/src/qml/jit/qv4baselinejit.cpp
|
|
+++ b/src/qml/jit/qv4baselinejit.cpp
|
|
@@ -540,6 +540,8 @@ void BaselineJIT::generate_ThrowException()
|
|
as->passEngineAsArg(0);
|
|
BASELINEJIT_GENERATE_RUNTIME_CALL(ThrowException, CallResultDestination::Ignore);
|
|
as->gotoCatchException();
|
|
+
|
|
+ // LOAD_ACC(); <- not needed here since it would be unreachable.
|
|
}
|
|
|
|
void BaselineJIT::generate_GetException() { as->getException(); }
|
|
@@ -547,9 +549,11 @@ void BaselineJIT::generate_SetException() { as->setException(); }
|
|
|
|
void BaselineJIT::generate_CreateCallContext()
|
|
{
|
|
+ STORE_ACC();
|
|
as->prepareCallWithArgCount(1);
|
|
as->passCppFrameAsArg(0);
|
|
BASELINEJIT_GENERATE_RUNTIME_CALL(PushCallContext, CallResultDestination::Ignore);
|
|
+ LOAD_ACC();
|
|
}
|
|
|
|
void BaselineJIT::generate_PushCatchContext(int index, int name) { as->pushCatchContext(index, name); }
|
|
--
|
|
2.40.1
|
|
|