Skip to content

Commit c1735c5

Browse files
[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 a9e66a7) Co-authored-by: PuQing <me@puqing.work>
1 parent 91d9e9e commit c1735c5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix test__opcode: add ``JUMP_BACKWARD`` to specialization stats.

Python/specialize.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ _Py_GetSpecializationStats(void) {
118118
err += add_stat_dict(stats, LOAD_GLOBAL, "load_global");
119119
err += add_stat_dict(stats, STORE_SUBSCR, "store_subscr");
120120
err += add_stat_dict(stats, STORE_ATTR, "store_attr");
121+
err += add_stat_dict(stats, JUMP_BACKWARD, "jump_backward");
121122
err += add_stat_dict(stats, CALL, "call");
122123
err += add_stat_dict(stats, CALL_KW, "call_kw");
123124
err += add_stat_dict(stats, BINARY_OP, "binary_op");

0 commit comments

Comments
 (0)