From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 17 Jun 2025 12:38:22 +0000 (+0200) Subject: [3.14] gh-132815: Add support for JUMP_BACKWARD in specialization stats (GH-135606... X-Git-Tag: v3.14.0b3~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1735c5b4e56b006fecd2a4672888665ab0f8adb;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-132815: Add support for JUMP_BACKWARD in specialization stats (GH-135606) (#135612) gh-132815: Add support for JUMP_BACKWARD in specialization stats (GH-135606) (cherry picked from commit a9e66a7c506680263b39bc8c150ddc5e72213c45) Co-authored-by: PuQing --- 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 index 000000000000..5b7485ce2d6a --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-06-17-08-48-08.gh-issue-132815.CY1Esu.rst @@ -0,0 +1 @@ +Fix test__opcode: add ``JUMP_BACKWARD`` to specialization stats. diff --git a/Python/specialize.c b/Python/specialize.c index bbe725c8ec83..545098eb51d4 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -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");