]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-132815: Add support for JUMP_BACKWARD in specialization stats (GH-135606...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Jun 2025 12:38:22 +0000 (14:38 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Jun 2025 12:38:22 +0000 (12:38 +0000)
gh-132815: Add support for JUMP_BACKWARD in specialization stats (GH-135606)
(cherry picked from commit a9e66a7c506680263b39bc8c150ddc5e72213c45)

Co-authored-by: PuQing <me@puqing.work>
Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst [new file with mode: 0644]
Python/specialize.c

diff --git a/Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst b/Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst
new file mode 100644 (file)
index 0000000..5b7485c
--- /dev/null
@@ -0,0 +1 @@
+Fix test__opcode: add ``JUMP_BACKWARD`` to specialization stats.
index bbe725c8ec8381b8abead10b2e0ae492b522eb55..545098eb51d422eead835eae74cc145a5da6dfa2 100644 (file)
@@ -118,6 +118,7 @@ _Py_GetSpecializationStats(void) {
     err += add_stat_dict(stats, LOAD_GLOBAL, "load_global");
     err += add_stat_dict(stats, STORE_SUBSCR, "store_subscr");
     err += add_stat_dict(stats, STORE_ATTR, "store_attr");
+    err += add_stat_dict(stats, JUMP_BACKWARD, "jump_backward");
     err += add_stat_dict(stats, CALL, "call");
     err += add_stat_dict(stats, CALL_KW, "call_kw");
     err += add_stat_dict(stats, BINARY_OP, "binary_op");