Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest__opcode.py10 self.assertEqual(_opcode.stack_effect(dis.opmap['POP_TOP']), -1)
11 self.assertEqual(_opcode.stack_effect(dis.opmap['DUP_TOP_TWO']), 2)
12 self.assertEqual(_opcode.stack_effect(dis.opmap['BUILD_SLICE'], 0), -1)
13 self.assertEqual(_opcode.stack_effect(dis.opmap['BUILD_SLICE'], 1), -1)
14 self.assertEqual(_opcode.stack_effect(dis.opmap['BUILD_SLICE'], 3), -2)
15 self.assertRaises(ValueError, _opcode.stack_effect, 30000)
16 self.assertRaises(ValueError, _opcode.stack_effect, dis.opmap['BUILD_SLICE'])
17 self.assertRaises(ValueError, _opcode.stack_effect, dis.opmap['POP_TOP'], 0)
/external/python/cpython3/Lib/
Dopcode.py19 from _opcode import stack_effect
/external/v8/src/wasm/
Dwasm-interpreter.cc780 auto stack_effect = in SideTable() local
783 WasmOpcodes::OpcodeName(opcode), stack_height, stack_effect.first, in SideTable()
784 stack_effect.second); in SideTable()
785 DCHECK_GE(stack_height, stack_effect.first); in SideTable()
787 stack_effect.first + stack_effect.second); in SideTable()
788 stack_height = stack_height - stack_effect.first + stack_effect.second; in SideTable()
2138 std::pair<uint32_t, uint32_t> stack_effect = in Execute() local
2142 StackHeight() - stack_effect.first + stack_effect.second; in Execute()
/external/python/cpython3/Misc/NEWS.d/
D3.6.1rc1.rst47 Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu
D3.7.0a1.rst757 Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu
/external/python/cpython3/Python/
Dcompile.c876 stack_effect(int opcode, int oparg, int jump) in stack_effect() function
1128 return stack_effect(opcode, oparg, -1); in PyCompile_OpcodeStackEffect()
5029 int effect = stack_effect(instr->i_opcode, instr->i_oparg, 0); in stackdepth()
5040 effect = stack_effect(instr->i_opcode, instr->i_oparg, 1); in stackdepth()
/external/python/cpython3/Doc/library/
Ddis.rst251 .. function:: stack_effect(opcode, [oparg])
/external/python/cpython3/Doc/whatsnew/
D3.4.rst770 New function :func:`~dis.stack_effect` computes the effect on the Python stack
/external/python/cpython3/Misc/
DHISTORY3283 - Issue #19722: Added opcode.stack_effect(), which