mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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
|
@ -68,7 +68,7 @@ OPARG_SIZES = {
|
|||
"OPARG_CACHE_4": 4,
|
||||
"OPARG_TOP": 5,
|
||||
"OPARG_BOTTOM": 6,
|
||||
"OPARG_SAVE_IP": 7,
|
||||
"OPARG_SET_IP": 7,
|
||||
}
|
||||
|
||||
INSTR_FMT_PREFIX = "INSTR_FMT_"
|
||||
|
@ -658,8 +658,8 @@ class Generator(Analyzer):
|
|||
seen.add(name)
|
||||
|
||||
# These two are first by convention
|
||||
add("EXIT_TRACE")
|
||||
add("SAVE_IP")
|
||||
add("_EXIT_TRACE")
|
||||
add("_SET_IP")
|
||||
|
||||
for instr in self.instrs.values():
|
||||
if instr.kind == "op":
|
||||
|
@ -687,8 +687,8 @@ class Generator(Analyzer):
|
|||
)
|
||||
return
|
||||
if not part.active_caches:
|
||||
if part.instr.name == "SAVE_IP":
|
||||
size, offset = OPARG_SIZES["OPARG_SAVE_IP"], cache_offset
|
||||
if part.instr.name == "_SET_IP":
|
||||
size, offset = OPARG_SIZES["OPARG_SET_IP"], cache_offset
|
||||
else:
|
||||
size, offset = OPARG_SIZES["OPARG_FULL"], 0
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue