Home
last modified time | relevance | path

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

/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest__opcode.py7 from _opcode import stack_effect
13 self.assertEqual(stack_effect(dis.opmap['POP_TOP']), -1)
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)
25 self.assertRaises(ValueError, stack_effect, code, 0)
[all …]
/aosp_15_r20/external/pytorch/torch/_dynamo/
H A Dbytecode_analysis.py29 stack_effect = dis.stack_effect variable
234 else stack_effect(inst.opcode, inst.arg, jump=False)
239 stack_size, stack_effect(inst.opcode, inst.arg, jump=True)
H A Dsymbolic_convert.py691 stack_effect = dis.stack_effect(
693 ) + dis.stack_effect(dis.opmap["CALL"], inst.arg)
695 stack_effect = dis.stack_effect(inst.opcode, inst.arg)
696 self.popn(push - stack_effect)
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/
Dopcode.py19 from _opcode import stack_effect
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/
H A Dopcode.py19 from _opcode import stack_effect
/aosp_15_r20/external/python/cpython3/Lib/
Dopcode.py19 from _opcode import stack_effect
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/
Dopcode.py19 from _opcode import stack_effect
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/
Dopcode.py19 from _opcode import stack_effect
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/
Dopcode.py19 from _opcode import stack_effect
/aosp_15_r20/external/python/cpython3/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
/aosp_15_r20/external/python/cpython3/Doc/library/
Ddis.rst309 .. function:: stack_effect(opcode, oparg=None, *, jump=None)
313 If the code has a jump target and *jump* is ``True``, :func:`~stack_effect`
/aosp_15_r20/external/python/cpython3/Python/
Dcompile.c944 stack_effect(int opcode, int oparg, int jump) in stack_effect() function
1202 return stack_effect(opcode, oparg, jump); in PyCompile_OpcodeStackEffectWithJump()
1208 return stack_effect(opcode, oparg, -1); in PyCompile_OpcodeStackEffect()
7185 int effect = stack_effect(instr->i_opcode, instr->i_oparg, 0); in stackdepth()
7198 effect = stack_effect(instr->i_opcode, instr->i_oparg, 1); in stackdepth()
/aosp_15_r20/external/python/cpython3/Doc/whatsnew/
D3.4.rst770 New function :func:`~dis.stack_effect` computes the effect on the Python stack
/aosp_15_r20/external/python/cpython3/Misc/
DHISTORY3283 - Issue #19722: Added opcode.stack_effect(), which