summaryrefslogtreecommitdiffstats
path: root/Python/specialize.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2022-07-22 18:56:10 (GMT)
committerGitHub <noreply@github.com>2022-07-22 18:56:10 (GMT)
commit5a48ab01e93c92594eac777c499d1e728ddf1f7e (patch)
tree5290c6976cfbacf7664ef221c3c2057cff11faf7 /Python/specialize.c
parente99496e1c20253d0d2e2e016509cd9c2fa24dd85 (diff)
downloadcpython-5a48ab01e93c92594eac777c499d1e728ddf1f7e.zip
cpython-5a48ab01e93c92594eac777c499d1e728ddf1f7e.tar.gz
cpython-5a48ab01e93c92594eac777c499d1e728ddf1f7e.tar.bz2
[3.11] GH-95113: Don't use EXTENDED_ARG_QUICK in unquickened code (GH-95121) (GH-95143)
(cherry picked from commit e402b26b7fb953a2f0c17a0044bb6d6cbd726e54)
Diffstat (limited to 'Python/specialize.c')
-rw-r--r--Python/specialize.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/specialize.c b/Python/specialize.c
index 5f2c6b3..b318cb5 100644
--- a/Python/specialize.c
+++ b/Python/specialize.c
@@ -275,6 +275,9 @@ _PyCode_Quicken(PyCodeObject *code)
else {
assert(!_PyOpcode_Caches[opcode]);
switch (opcode) {
+ case EXTENDED_ARG:
+ _Py_SET_OPCODE(instructions[i], EXTENDED_ARG_QUICK);
+ break;
case JUMP_BACKWARD:
_Py_SET_OPCODE(instructions[i], JUMP_BACKWARD_QUICK);
break;