Home
last modified time | relevance | path

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

/third_party/python/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.c50 Py_ssize_t oparg, PyObject *kwnames);
79 static void format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg);
928 int oparg; /* Current opcode argument, if any */ in _PyEval_EvalFrameDefault() local
1070 oparg = _Py_OPARG(word); \ in _PyEval_EvalFrameDefault()
1112 oparg = _Py_OPARG(word); \ in _PyEval_EvalFrameDefault()
1455 f->f_lasti, opcode, oparg); in _PyEval_EvalFrameDefault()
1475 PyObject *value = GETLOCAL(oparg); in _PyEval_EvalFrameDefault()
1479 PyTuple_GetItem(co->co_varnames, oparg)); in _PyEval_EvalFrameDefault()
1489 PyObject *value = GETITEM(consts, oparg); in _PyEval_EvalFrameDefault()
1498 SETLOCAL(oparg, value); in _PyEval_EvalFrameDefault()
[all …]
Dpeephole.c67 unsigned int oparg = _Py_OPARG(codestr[i]); in get_arg() local
69 oparg |= _Py_OPARG(word) << 8; in get_arg()
71 oparg |= _Py_OPARG(word) << 16; in get_arg()
73 oparg |= _Py_OPARG(word) << 24; in get_arg()
77 return oparg; in get_arg()
91 set_arg(_Py_CODEUNIT *codestr, Py_ssize_t i, unsigned int oparg) in set_arg() argument
95 if (curarg == oparg) in set_arg()
98 newilen = instrsize(oparg); in set_arg()
103 write_op_arg(codestr + i + 1 - curilen, _Py_OPCODE(codestr[i]), oparg, newilen); in set_arg()
113 unsigned int oparg, Py_ssize_t maxi) in copy_op_arg() argument
[all …]
Dcompile.c872 stack_effect(int opcode, int oparg, int jump) in stack_effect() argument
977 return oparg-1; in stack_effect()
979 return (oparg&0xFF) + (oparg>>8); in stack_effect()
1000 return 1-oparg; in stack_effect()
1002 return 1 - 2*oparg; in stack_effect()
1004 return -oparg; in stack_effect()
1054 return -oparg; in stack_effect()
1058 return -oparg; in stack_effect()
1060 return -oparg-1; in stack_effect()
1062 return -oparg-1; in stack_effect()
[all …]
/third_party/python/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()
42 else if (oparg != Py_None) { in _opcode_stack_effect_impl()
/third_party/python/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
48 oparg = args[1]; in _opcode_stack_effect()
55 _return_value = _opcode_stack_effect_impl(module, opcode, oparg, jump); in _opcode_stack_effect()
/third_party/uboot/u-boot-2020.01/cmd/
Dbinop.c71 char *oparg, *lenarg, *src1arg, *src2arg, *destarg; in do_binop() local
77 oparg = argv[1]; in do_binop()
82 if (!strcmp(oparg, "xor")) in do_binop()
84 else if (!strcmp(oparg, "or")) in do_binop()
86 else if (!strcmp(oparg, "and")) in do_binop()
/third_party/python/Include/
Dcompile.h91 PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
92 PyAPI_FUNC(int) PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump);
/third_party/python/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])
/third_party/python/Objects/
Dframeobject.c59 unsigned int oparg = _Py_OPARG(codestr[i]); in get_arg() local
61 oparg |= _Py_OPARG(word) << 8; in get_arg()
63 oparg |= _Py_OPARG(word) << 16; in get_arg()
65 oparg |= _Py_OPARG(word) << 24; in get_arg()
69 return oparg; in get_arg()
/third_party/python/Doc/library/
Ddis.rst251 .. function:: stack_effect(opcode, oparg=None, *, jump=None)
253 Compute the stack effect of *opcode* with argument *oparg*.