Home
last modified time | relevance | path

Searched refs:stack_effect (Results 1 – 9 of 9) sorted by relevance

/third_party/python/Lib/test/
Dtest__opcode.py6 from _opcode import stack_effect
12 self.assertEqual(stack_effect(dis.opmap['POP_TOP']), -1)
13 self.assertEqual(stack_effect(dis.opmap['DUP_TOP_TWO']), 2)
14 self.assertEqual(stack_effect(dis.opmap['BUILD_SLICE'], 0), -1)
15 self.assertEqual(stack_effect(dis.opmap['BUILD_SLICE'], 1), -1)
16 self.assertEqual(stack_effect(dis.opmap['BUILD_SLICE'], 3), -2)
17 self.assertRaises(ValueError, stack_effect, 30000)
18 self.assertRaises(ValueError, stack_effect, dis.opmap['BUILD_SLICE'])
19 self.assertRaises(ValueError, stack_effect, dis.opmap['POP_TOP'], 0)
24 stack_effect(code)
[all …]
/third_party/python/Lib/
Dopcode.py19 from _opcode import stack_effect
/third_party/python/Misc/NEWS.d/
D3.6.1rc1.rst47 Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu
D3.8.0a1.rst5019 Added *jump* parameter to :func:`dis.stack_effect`.
5066 :func:`dis.stack_effect` now supports all defined opcodes including NOP and
D3.7.0a1.rst756 Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu
/third_party/python/Doc/library/
Ddis.rst251 .. function:: stack_effect(opcode, oparg=None, *, jump=None)
255 If the code has a jump target and *jump* is ``True``, :func:`~stack_effect`
/third_party/python/Python/
Dcompile.c954 stack_effect(int opcode, int oparg, int jump) in stack_effect() function
1224 return stack_effect(opcode, oparg, jump); in PyCompile_OpcodeStackEffectWithJump()
1230 return stack_effect(opcode, oparg, -1); in PyCompile_OpcodeStackEffect()
6515 int effect = stack_effect(instr->i_opcode, instr->i_oparg, 0); in stackdepth()
6528 effect = stack_effect(instr->i_opcode, instr->i_oparg, 1); in stackdepth()
/third_party/python/Doc/whatsnew/
D3.4.rst770 New function :func:`~dis.stack_effect` computes the effect on the Python stack
/third_party/python/Misc/
DHISTORY3283 - Issue #19722: Added opcode.stack_effect(), which