summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2025-05-20 22:09:51 (GMT)
committerGitHub <noreply@github.com>2025-05-20 22:09:51 (GMT)
commit2f0570caf490d4edbfbfd75c529cdee24f6edb8a (patch)
treeff4b0e0a7736df5a522699c5f2502d011c8764f7 /Python/bytecodes.c
parente1c0c451a2ff815fc817e71ec15c37bff9cb84d0 (diff)
downloadcpython-2f0570caf490d4edbfbfd75c529cdee24f6edb8a.zip
cpython-2f0570caf490d4edbfbfd75c529cdee24f6edb8a.tar.gz
cpython-2f0570caf490d4edbfbfd75c529cdee24f6edb8a.tar.bz2
GH-131798: Narrow types more aggressively in the JIT (GH-134373)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index 65f411f..a236702 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -344,6 +344,11 @@ dummy_func(
PyStackRef_CLOSE(value);
}
+ tier2 op(_POP_TWO, (nos, tos --)) {
+ PyStackRef_CLOSE(tos);
+ PyStackRef_CLOSE(nos);
+ }
+
pure inst(PUSH_NULL, (-- res)) {
res = PyStackRef_NULL;
}