mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-128563: Move GO_TO_INSTRUCTION and PREDICT to cases generator (GH-129115)
This commit is contained in:
parent
767cf70844
commit
86c1a60d5a
5 changed files with 47 additions and 59 deletions
|
@ -158,7 +158,7 @@ def generate_tier1(
|
|||
out.emit(f"next_instr += {inst.size};\n")
|
||||
out.emit(f"INSTRUCTION_STATS({name});\n")
|
||||
if inst.is_target:
|
||||
out.emit(f"PREDICTED({name});\n")
|
||||
out.emit(f"PREDICTED_{name}:;\n")
|
||||
if needs_this:
|
||||
out.emit(f"_Py_CODEUNIT* const this_instr = next_instr - {inst.size};\n")
|
||||
out.emit(unused_guard)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue