mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
gh-106529: Implement JUMP_FORWARD in uops (with test) (#106651)
Note that this may generate two SAVE_IP uops in a row. Removing unneeded SAVE_IP uops is the optimizer's job.
This commit is contained in:
parent
d0972c77aa
commit
da86db56cb
2 changed files with 32 additions and 0 deletions
|
@ -472,6 +472,13 @@ translate_bytecode_to_trace(
|
|||
goto done;
|
||||
}
|
||||
|
||||
case JUMP_FORWARD:
|
||||
{
|
||||
// This will emit two SAVE_IP instructions; leave it to the optimizer
|
||||
instr += oparg;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
const struct opcode_macro_expansion *expansion = &_PyOpcode_macro_expansion[opcode];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue