Home
last modified time | relevance | path

Searched refs:oparg (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython3/Python/
Dwordcode_helpers.h6 # define PACKOPARG(opcode, oparg) ((_Py_CODEUNIT)(((opcode) << 8) | (oparg))) argument
8 # define PACKOPARG(opcode, oparg) ((_Py_CODEUNIT)(((oparg) << 8) | (opcode))) argument
14 instrsize(unsigned int oparg) in instrsize() argument
16 return oparg <= 0xff ? 1 : in instrsize()
17 oparg <= 0xffff ? 2 : in instrsize()
18 oparg <= 0xffffff ? 3 : in instrsize()
26 unsigned int oparg, int ilen) in write_op_arg() argument
30 *codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 24) & 0xff); in write_op_arg()
33 *codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 16) & 0xff); in write_op_arg()
36 *codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 8) & 0xff); in write_op_arg()
[all …]
Dceval.c58 Py_ssize_t oparg, PyObject *kwnames);
90 static void format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg);
1336 oparg = _Py_OPARG(word); \
1378 oparg = _Py_OPARG(word); \
1592 int oparg; /* Current opcode argument, if any */ in _PyEval_EvalFrameDefault() local
1821 f->f_lasti, opcode, oparg); in _PyEval_EvalFrameDefault()
1859 PyObject *value = GETLOCAL(oparg); in _PyEval_EvalFrameDefault()
1863 PyTuple_GetItem(co->co_varnames, oparg)); in _PyEval_EvalFrameDefault()
1873 PyObject *value = GETITEM(consts, oparg); in _PyEval_EvalFrameDefault()
1882 SETLOCAL(oparg, value); in _PyEval_EvalFrameDefault()
[all …]
Dcompile.c956 stack_effect(int opcode, int oparg, int jump) in stack_effect() argument
1061 return oparg-1; in stack_effect()
1063 return (oparg&0xFF) + (oparg>>8); in stack_effect()
1084 return 1-oparg; in stack_effect()
1086 return 1 - 2*oparg; in stack_effect()
1088 return -oparg; in stack_effect()
1138 return -oparg; in stack_effect()
1142 return -oparg; in stack_effect()
1144 return -oparg-1; in stack_effect()
1146 return -oparg-1; in stack_effect()
[all …]
/external/python/cpython2/Lib/
Ddis.py88 oparg = ord(code[i]) + ord(code[i+1])*256 + extended_arg
92 extended_arg = oparg*65536L
93 print repr(oparg).rjust(5),
95 print '(' + repr(co.co_consts[oparg]) + ')',
97 print '(' + co.co_names[oparg] + ')',
99 print '(to ' + repr(i + oparg) + ')',
101 print '(' + co.co_varnames[oparg] + ')',
103 print '(' + cmp_op[oparg] + ')',
107 print '(' + free[oparg] + ')',
126 oparg = ord(code[i]) + ord(code[i+1])*256
[all …]
Dmodulefinder.py368 for i, (op, oparg) in enumerate(opargs):
370 yield "store", (names[oparg],)
375 yield "import", (fromlist, names[oparg])
385 for i, (op, oparg) in enumerate(opargs):
387 yield "store", (names[oparg],)
394 yield "import", (fromlist, names[oparg])
396 yield "absolute_import", (fromlist, names[oparg])
398 yield "relative_import", (level, fromlist, names[oparg])
/external/python/cpython2/Python/
Dceval.c722 oparg = NEXTARG(); \ in PyEval_EvalFrameEx()
740 oparg = NEXTARG(); \ in PyEval_EvalFrameEx()
799 register int oparg; /* Current opcode argument, if any */ in PyEval_EvalFrameEx() local
918 #define PREDICTED_WITH_ARG(op) PRED_##op: oparg = PEEKARG(); next_instr += 3 in PyEval_EvalFrameEx()
1176 oparg = 0; /* allows oparg to be stored in a register because in PyEval_EvalFrameEx()
1179 oparg = NEXTARG(); in PyEval_EvalFrameEx()
1195 f->f_lasti, opcode, oparg); in PyEval_EvalFrameEx()
1223 x = GETLOCAL(oparg); in PyEval_EvalFrameEx()
1231 PyTuple_GetItem(co->co_varnames, oparg)); in PyEval_EvalFrameEx()
1237 x = GETITEM(consts, oparg); in PyEval_EvalFrameEx()
[all …]
Dcompile.c686 opcode_stack_effect(int opcode, int oparg) in opcode_stack_effect() argument
824 return oparg-1; in opcode_stack_effect()
837 return oparg; in opcode_stack_effect()
845 return 1-oparg; in opcode_stack_effect()
885 return -oparg; in opcode_stack_effect()
888 return -NARGS(oparg); in opcode_stack_effect()
891 return -NARGS(oparg)-1; in opcode_stack_effect()
893 return -NARGS(oparg)-2; in opcode_stack_effect()
896 return -oparg; in opcode_stack_effect()
898 if (oparg == 3) in opcode_stack_effect()
[all …]
/external/python/cpython3/Modules/
D_opcode.c25 _opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg, in _opcode_stack_effect_impl() argument
33 if (oparg == Py_None) { in _opcode_stack_effect_impl()
38 oparg_int = (int)PyLong_AsLong(oparg); in _opcode_stack_effect_impl()
43 else if (oparg != Py_None) { in _opcode_stack_effect_impl()
/external/python/cpython3/Modules/clinic/
D_opcode.c.h15 _opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg,
27 PyObject *oparg = Py_None; in _opcode_stack_effect() local
43 oparg = args[1]; in _opcode_stack_effect()
50 _return_value = _opcode_stack_effect_impl(module, opcode, oparg, jump); in _opcode_stack_effect()
/external/python/cpython3/Include/cpython/
Dcompile.h53 PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
54 PyAPI_FUNC(int) PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump);
/external/kernel-headers/original/uapi/linux/
Dfutex.h176 #define FUTEX_OP(op, oparg, cmp, cmparg) \ argument
178 | ((oparg & 0xfff) << 12) | (cmparg & 0xfff))
/external/ltp/include/lapi/
Dfutex.h164 #define FUTEX_OP(op, oparg, cmp, cmparg) \ argument
166 | ((oparg & 0xfff) << 12) | (cmparg & 0xfff))
/external/python/cpython2/Lib/compiler/
Dpyassem.py391 oparg = inst[1]
392 offset = begin[oparg] - pc
413 opname, oparg = t
416 self.insts[i] = opname, conv(self, oparg)
512 oparg = t[1]
514 lnotab.nextLine(oparg)
516 hi, lo = twobyte(oparg)
520 print opname, oparg
/external/python/cpython3/Objects/
Dframeobject.c81 unsigned int oparg = _Py_OPARG(codestr[i]); in get_arg() local
83 oparg |= _Py_OPARG(word) << 8; in get_arg()
85 oparg |= _Py_OPARG(word) << 16; in get_arg()
87 oparg |= _Py_OPARG(word) << 24; in get_arg()
91 return oparg; in get_arg()
/external/python/cpython3/Lib/
Dmodulefinder.py402 for i, (op, oparg) in enumerate(opargs):
404 yield "store", (names[oparg],)
411 yield "absolute_import", (fromlist, names[oparg])
413 yield "relative_import", (level, fromlist, names[oparg])
/external/python/cpython3/Doc/library/
Ddis.rst251 .. function:: stack_effect(opcode, oparg=None, *, jump=None)
253 Compute the stack effect of *opcode* with argument *oparg*.
711 Re-raises the exception currently on top of the stack. If oparg is non-zero,
/external/python/cpython3/Misc/NEWS.d/
D3.10.1.rst335 Fix bug where :mod:`dis` produced an incorrect oparg when
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst408 oparg for BUILD_MAP now indicates an estimated dictionary size. There is a
/external/python/cpython3/Doc/data/
Dpython3.10.abi13230 … <parameter type-id='type-id-9' name='oparg' filepath='Python/compile.c' line='1228' column='1'/>
13235 … <parameter type-id='type-id-9' name='oparg' filepath='Python/compile.c' line='1222' column='1'/>