mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
GH-115419: Improve list of escaping functions (GH-118054)
This commit is contained in:
parent
fefd5d9711
commit
d3bd6b5f3f
4 changed files with 37 additions and 25 deletions
|
@ -543,7 +543,9 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size)
|
|||
return pc + 1;
|
||||
default:
|
||||
{
|
||||
bool needs_ip = false;
|
||||
/* _PUSH_FRAME doesn't escape or error, but it
|
||||
* does need the IP for the return address */
|
||||
bool needs_ip = opcode == _PUSH_FRAME;
|
||||
if (_PyUop_Flags[opcode] & HAS_ESCAPES_FLAG) {
|
||||
needs_ip = true;
|
||||
may_have_escaped = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue