mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
GH-121131: Clean up and fix some instrumented instructions. (GH-121132)
* Add support for 'prev_instr' to code generator and refactor some INSTRUMENTED instructions
This commit is contained in:
parent
d9efa45d74
commit
afb0aa6ed2
15 changed files with 277 additions and 215 deletions
8
Python/executor_cases.c.h
generated
8
Python/executor_cases.c.h
generated
|
@ -1153,10 +1153,6 @@
|
|||
break;
|
||||
}
|
||||
|
||||
/* _INSTRUMENTED_RETURN_VALUE is not a viable micro-op for tier 2 because it is instrumented */
|
||||
|
||||
/* _INSTRUMENTED_RETURN_CONST is not a viable micro-op for tier 2 because it is instrumented */
|
||||
|
||||
case _GET_AITER: {
|
||||
_PyStackRef obj;
|
||||
_PyStackRef iter;
|
||||
|
@ -1304,8 +1300,6 @@
|
|||
break;
|
||||
}
|
||||
|
||||
/* _INSTRUMENTED_YIELD_VALUE is not a viable micro-op for tier 2 because it is instrumented */
|
||||
|
||||
case _YIELD_VALUE: {
|
||||
_PyStackRef retval;
|
||||
_PyStackRef value;
|
||||
|
@ -4913,6 +4907,8 @@
|
|||
break;
|
||||
}
|
||||
|
||||
/* _INSTRUMENTED_LINE is not a viable micro-op for tier 2 because it is instrumented */
|
||||
|
||||
/* _INSTRUMENTED_INSTRUCTION is not a viable micro-op for tier 2 because it is instrumented */
|
||||
|
||||
/* _INSTRUMENTED_JUMP_FORWARD is not a viable micro-op for tier 2 because it is instrumented */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue