mirror of
https://github.com/python/cpython.git
synced 2025-10-28 20:25:04 +00:00
GH-130296: Remove _PyOpcode_max_stack_effect as it is no longer used (GH-131493)
This commit is contained in:
parent
b69da006a4
commit
83d54fa876
6 changed files with 4 additions and 1249 deletions
|
|
@ -416,16 +416,6 @@ def get_stack_effect(inst: Instruction | PseudoInstruction) -> Stack:
|
|||
return stack
|
||||
|
||||
|
||||
def get_stack_effects(inst: Instruction | PseudoInstruction) -> list[Stack]:
|
||||
"""Returns a list of stack effects after each uop"""
|
||||
result = []
|
||||
stack = Stack()
|
||||
for s in stacks(inst):
|
||||
apply_stack_effect(stack, s)
|
||||
result.append(stack.copy())
|
||||
return result
|
||||
|
||||
|
||||
@dataclass
|
||||
class Storage:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue