mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
gh-105775: Convert LOAD_CLOSURE to a pseudo-op (#106059)
This enables super-instruction formation, removal of checks for uninitialized variables, and frees up an instruction.
This commit is contained in:
parent
3c70d467c1
commit
8bff940ad6
16 changed files with 733 additions and 702 deletions
|
@ -836,6 +836,8 @@ stack_effect(int opcode, int oparg, int jump)
|
|||
|
||||
case STORE_FAST_MAYBE_NULL:
|
||||
return -1;
|
||||
case LOAD_CLOSURE:
|
||||
return 1;
|
||||
case LOAD_METHOD:
|
||||
return 1;
|
||||
case LOAD_SUPER_METHOD:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue