Searched refs:stack_effect (Results 1 – 9 of 9) sorted by relevance
/third_party/python/Lib/test/ |
D | test__opcode.py | 6 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/ |
D | opcode.py | 19 from _opcode import stack_effect
|
/third_party/python/Misc/NEWS.d/ |
D | 3.6.1rc1.rst | 47 Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu
|
D | 3.8.0a1.rst | 5019 Added *jump* parameter to :func:`dis.stack_effect`. 5066 :func:`dis.stack_effect` now supports all defined opcodes including NOP and
|
D | 3.7.0a1.rst | 756 Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu
|
/third_party/python/Doc/library/ |
D | dis.rst | 251 .. 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/ |
D | compile.c | 954 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/ |
D | 3.4.rst | 770 New function :func:`~dis.stack_effect` computes the effect on the Python stack
|
/third_party/python/Misc/ |
D | HISTORY | 3283 - Issue #19722: Added opcode.stack_effect(), which
|