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
14
Python/executor_cases.c.h
generated
14
Python/executor_cases.c.h
generated
|
@ -1902,7 +1902,7 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case IS_NONE: {
|
||||
case _IS_NONE: {
|
||||
PyObject *value;
|
||||
PyObject *b;
|
||||
value = stack_pointer[-1];
|
||||
|
@ -2887,29 +2887,29 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case JUMP_TO_TOP: {
|
||||
case _JUMP_TO_TOP: {
|
||||
pc = 0;
|
||||
CHECK_EVAL_BREAKER();
|
||||
break;
|
||||
}
|
||||
|
||||
case SAVE_IP: {
|
||||
case _SET_IP: {
|
||||
frame->prev_instr = ip_offset + oparg;
|
||||
break;
|
||||
}
|
||||
|
||||
case SAVE_CURRENT_IP: {
|
||||
case _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
|
||||
break;
|
||||
}
|
||||
|
||||
case EXIT_TRACE: {
|
||||
case _EXIT_TRACE: {
|
||||
frame->prev_instr--; // Back up to just before destination
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
Py_DECREF(self);
|
||||
|
@ -2917,7 +2917,7 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case INSERT: {
|
||||
case _INSERT: {
|
||||
PyObject *top;
|
||||
top = stack_pointer[-1];
|
||||
// Inserts TOS at position specified by oparg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue