Skip to content

Commit 103c2c7

Browse files
committed
Address code review
1 parent 9b9177a commit 103c2c7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Include/internal/pycore_opcode_utils.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ extern "C" {
6161
(opcode) == LOAD_CONST__LOAD_FAST || \
6262
(opcode) == STORE_FAST__LOAD_FAST || \
6363
(opcode) == STORE_FAST__STORE_FAST) || \
64-
(opcode) == POP_TOP__STORE_FAST
64+
(opcode) == POP_TOP__POP_TOP || \
65+
(opcode) == POP_TOP__STORE_FAST ||
6566

6667

6768
#define LOG_BITS_PER_INT 5

Python/instrumentation.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,7 @@ static const uint8_t super_instructions[256] = {
14931493
[STORE_FAST__LOAD_FAST] = 1,
14941494
[STORE_FAST__STORE_FAST] = 1,
14951495
[LOAD_CONST__LOAD_FAST] = 1,
1496+
[POP_TOP__POP_TOP] = 1,
14961497
[POP_TOP__STORE_FAST] = 1,
14971498
};
14981499

0 commit comments

Comments
 (0)