mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +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
20
Python/generated_cases.c.h
generated
20
Python/generated_cases.c.h
generated
|
@ -987,13 +987,13 @@
|
|||
|
||||
TARGET(RETURN_VALUE) {
|
||||
PyObject *retval;
|
||||
// SAVE_CURRENT_IP
|
||||
// _SAVE_CURRENT_IP
|
||||
{
|
||||
#if TIER_ONE
|
||||
frame->prev_instr = next_instr - 1;
|
||||
#endif
|
||||
#if TIER_TWO
|
||||
// Relies on a preceding SAVE_IP
|
||||
// Relies on a preceding _SET_IP
|
||||
frame->prev_instr--;
|
||||
#endif
|
||||
}
|
||||
|
@ -1055,13 +1055,13 @@
|
|||
value = GETITEM(FRAME_CO_CONSTS, oparg);
|
||||
Py_INCREF(value);
|
||||
}
|
||||
// SAVE_CURRENT_IP
|
||||
// _SAVE_CURRENT_IP
|
||||
{
|
||||
#if TIER_ONE
|
||||
frame->prev_instr = next_instr - 1;
|
||||
#endif
|
||||
#if TIER_TWO
|
||||
// Relies on a preceding SAVE_IP
|
||||
// Relies on a preceding _SET_IP
|
||||
frame->prev_instr--;
|
||||
#endif
|
||||
}
|
||||
|
@ -3024,7 +3024,7 @@
|
|||
PyObject *value;
|
||||
PyObject *b;
|
||||
PyObject *cond;
|
||||
// IS_NONE
|
||||
// _IS_NONE
|
||||
value = stack_pointer[-1];
|
||||
{
|
||||
if (Py_IsNone(value)) {
|
||||
|
@ -3054,7 +3054,7 @@
|
|||
PyObject *value;
|
||||
PyObject *b;
|
||||
PyObject *cond;
|
||||
// IS_NONE
|
||||
// _IS_NONE
|
||||
value = stack_pointer[-1];
|
||||
{
|
||||
if (Py_IsNone(value)) {
|
||||
|
@ -3879,14 +3879,14 @@
|
|||
new_frame->localsplus[i] = args[i];
|
||||
}
|
||||
}
|
||||
// SAVE_CURRENT_IP
|
||||
// _SAVE_CURRENT_IP
|
||||
next_instr += 3;
|
||||
{
|
||||
#if TIER_ONE
|
||||
frame->prev_instr = next_instr - 1;
|
||||
#endif
|
||||
#if TIER_TWO
|
||||
// Relies on a preceding SAVE_IP
|
||||
// Relies on a preceding _SET_IP
|
||||
frame->prev_instr--;
|
||||
#endif
|
||||
}
|
||||
|
@ -3958,14 +3958,14 @@
|
|||
new_frame->localsplus[i] = args[i];
|
||||
}
|
||||
}
|
||||
// SAVE_CURRENT_IP
|
||||
// _SAVE_CURRENT_IP
|
||||
next_instr += 3;
|
||||
{
|
||||
#if TIER_ONE
|
||||
frame->prev_instr = next_instr - 1;
|
||||
#endif
|
||||
#if TIER_TWO
|
||||
// Relies on a preceding SAVE_IP
|
||||
// Relies on a preceding _SET_IP
|
||||
frame->prev_instr--;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue