Skip to content

Commit 9b9177a

Browse files
committed
Implement POP_TOP__POP_TOP
1 parent a42f944 commit 9b9177a

File tree

8 files changed

+505
-474
lines changed

8 files changed

+505
-474
lines changed

Include/internal/pycore_opcode.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/opcode.h

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/opcode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ def pseudo_op(name, op, real_ops):
436436
"SEND_GEN",
437437
],
438438
"POP_TOP": [
439+
"POP_TOP__POP_TOP",
439440
"POP_TOP__STORE_FAST"
440441
]
441442
}

Python/bytecodes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ dummy_func(
214214
super(STORE_FAST__LOAD_FAST) = STORE_FAST + LOAD_FAST;
215215
super(STORE_FAST__STORE_FAST) = STORE_FAST + STORE_FAST;
216216
super(LOAD_CONST__LOAD_FAST) = LOAD_CONST + LOAD_FAST;
217+
super(POP_TOP__POP_TOP) = POP_TOP + POP_TOP;
217218
super(POP_TOP__STORE_FAST) = POP_TOP + STORE_FAST;
218219

219220
inst(POP_TOP, (value --)) {

0 commit comments

Comments
 (0)