mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
gh-109214: Rename SAVE_IP to _SET_IP, and similar (#109285)
* Rename SAVE_IP to _SET_IP * Rename EXIT_TRACE to _EXIT_TRACE * Rename SAVE_CURRENT_IP to _SAVE_CURRENT_IP * Rename INSERT to _INSERT (This is for Ken Jin's abstract interpreter) * Rename IS_NONE to _IS_NONE * Rename JUMP_TO_TOP to _JUMP_TO_TOP
This commit is contained in:
parent
1ee50e2a78
commit
fbaf77eb9b
11 changed files with 117 additions and 117 deletions
|
@ -362,7 +362,7 @@ def write_macro_instr(
|
|||
parts = [
|
||||
part
|
||||
for part in mac.parts
|
||||
if isinstance(part, Component) and part.instr.name != "SAVE_IP"
|
||||
if isinstance(part, Component) and part.instr.name != "_SET_IP"
|
||||
]
|
||||
out.emit("")
|
||||
with out.block(f"TARGET({mac.name})"):
|
||||
|
@ -444,7 +444,7 @@ def write_components(
|
|||
), f"Expected {mgr.instr.name!r} to be the last uop"
|
||||
assert_no_pokes(managers)
|
||||
|
||||
if mgr.instr.name == "SAVE_CURRENT_IP":
|
||||
if mgr.instr.name == "_SAVE_CURRENT_IP":
|
||||
next_instr_is_set = True
|
||||
if cache_offset:
|
||||
out.emit(f"next_instr += {cache_offset};")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue