Skip to content

Commit 74063fd

Browse files
AndPuQinglkollar
authored andcommitted
pythongh-132815: Add support for JUMP_BACKWARD in specialization stats (python#135606)
1 parent abe87fc commit 74063fd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

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)