Home
last modified time | relevance | path

Searched refs:oparg (Results 1 - 14 of 14) sorted by relevance

/third_party/python/Python/
H A Dceval.c99 Py_ssize_t oparg, PyObject *kwnames);
133 int oparg = _Py_OPARG(*next_instr); in lltrace_instruction() local
139 printf("%d: %s %d\n", offset * 2, opname, oparg); in lltrace_instruction()
197 static void format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg);
1371 oparg = _Py_OPARG(word); \
1380 /* Get opcode and oparg from original instructions, not quickened form. */
1422 oparg = _Py_OPARG(word); \
1651 int oparg; /* Current opcode argument, if any */ local
1785 if (_Py_atomic_load_relaxed_int32(eval_breaker) && oparg < 2) {
1793 PyObject *value = GETLOCAL(oparg);
7777 format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg) global() argument
7794 format_awaitable_error(PyThreadState *tstate, PyTypeObject *type, int oparg) global() argument
[all...]
H A Dspecialize.c1370 PyObject *kwnames, int oparg) in specialize_class_call()
1379 if (nargs == 1 && kwnames == NULL && oparg == 1) { in specialize_class_call()
1431 int nargs, PyObject *kwnames, int oparg) in specialize_method_descriptor()
1460 if ((PyObject *)descr == list_append && oparg == 1 && pop) { in specialize_method_descriptor()
1632 PyObject *kwnames, int oparg) in _Py_Specialize_Precall()
1645 fail = specialize_class_call(callable, instr, nargs, kwnames, oparg); in _Py_Specialize_Precall()
1649 instr, nargs, kwnames, oparg); in _Py_Specialize_Precall()
1706 binary_op_fail_kind(int oparg, PyObject *lhs, PyObject *rhs) in binary_op_fail_kind() argument
1708 switch (oparg) { in binary_op_fail_kind()
1776 int oparg, PyObjec in _Py_Specialize_BinaryOp()
1369 specialize_class_call(PyObject *callable, _Py_CODEUNIT *instr, int nargs, PyObject *kwnames, int oparg) specialize_class_call() argument
1430 specialize_method_descriptor(PyMethodDescrObject *descr, _Py_CODEUNIT *instr, int nargs, PyObject *kwnames, int oparg) specialize_method_descriptor() argument
1631 _Py_Specialize_Precall(PyObject *callable, _Py_CODEUNIT *instr, int nargs, PyObject *kwnames, int oparg) _Py_Specialize_Precall() argument
1775 _Py_Specialize_BinaryOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr, int oparg, PyObject **locals) _Py_Specialize_BinaryOp() argument
1904 _Py_Specialize_CompareOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr, int oparg) _Py_Specialize_CompareOp() argument
1996 _Py_Specialize_UnpackSequence(PyObject *seq, _Py_CODEUNIT *instr, int oparg) _Py_Specialize_UnpackSequence() argument
[all...]
H A Dcompile.c199 int oparg = HAS_ARG(opcode) ? instruction->i_oparg : 0; in instr_size() local
200 int extended_args = (0xFFFFFF < oparg) + (0xFFFF < oparg) + (0xFF < oparg); in instr_size()
210 int oparg = HAS_ARG(opcode) ? instruction->i_oparg : 0; in write_instr() local
214 *codestr++ = _Py_MAKECODEUNIT(EXTENDED_ARG, (oparg >> 24) & 0xFF); in write_instr()
217 *codestr++ = _Py_MAKECODEUNIT(EXTENDED_ARG, (oparg >> 16) & 0xFF); in write_instr()
220 *codestr++ = _Py_MAKECODEUNIT(EXTENDED_ARG, (oparg >> 8) & 0xFF); in write_instr()
223 *codestr++ = _Py_MAKECODEUNIT(opcode, oparg & 0xFF); in write_instr()
934 /* Return the stack effect of opcode with argument oparg
944 stack_effect(int opcode, int oparg, int jump) stack_effect() argument
1200 PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump) PyCompile_OpcodeStackEffectWithJump() argument
1206 PyCompile_OpcodeStackEffect(int opcode, int oparg) PyCompile_OpcodeStackEffect() argument
1482 compiler_addop_i_line(struct compiler *c, int opcode, Py_ssize_t oparg, int lineno, int end_lineno, int col_offset, int end_col_offset) compiler_addop_i_line() argument
1521 compiler_addop_i(struct compiler *c, int opcode, Py_ssize_t oparg) compiler_addop_i() argument
1529 compiler_addop_i_noline(struct compiler *c, int opcode, Py_ssize_t oparg) compiler_addop_i_noline() argument
4186 int oparg; addop_binary() local
4999 int oparg; compiler_formatted_value() local
8511 get_const_value(int opcode, int oparg, PyObject *co_consts) get_const_value() argument
8640 int oparg = instructions[i].i_oparg; swaptimize() local
8815 int oparg = inst->i_oparg; optimize_basic_block() local
[all...]
/third_party/python/Modules/
H A D_opcode.c17 oparg: object = None
26 _opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg, in _opcode_stack_effect_impl() argument
34 if (oparg == Py_None) { in _opcode_stack_effect_impl()
36 "stack_effect: opcode requires oparg but oparg was not specified"); in _opcode_stack_effect_impl()
39 oparg_int = (int)PyLong_AsLong(oparg); in _opcode_stack_effect_impl()
44 else if (oparg != Py_None) { in _opcode_stack_effect_impl()
46 "stack_effect: opcode does not permit oparg but oparg was specified"); in _opcode_stack_effect_impl()
71 "invalid opcode or oparg"); in _opcode_stack_effect_impl()
[all...]
/third_party/python/Modules/clinic/
H A D_opcode.c.h6 "stack_effect($module, opcode, oparg=None, /, *, jump=None)\n"
15 _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()
/third_party/python/Lib/test/
H A Dtest_lltrace.py87 opname, oparg = opname_oparg
88 oparg = int(oparg)
91 oparg = None
93 self.assertEqual(instr_map[offset].arg, oparg)
/third_party/python/Include/cpython/
H A Dcode.h11 * currently 2 bytes: 1-byte opcode + 1-byte oparg. The EXTENDED_ARG
15 * (compiler_addop_i_line) indicating that the max oparg value is
24 # define _Py_MAKECODEUNIT(opcode, oparg) (((opcode)<<8)|(oparg))
28 # define _Py_MAKECODEUNIT(opcode, oparg) ((opcode)|((oparg)<<8))
H A Dcompile.h53 PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
54 PyAPI_FUNC(int) PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump);
/third_party/ltp/include/lapi/
H A Dfutex.h164 #define FUTEX_OP(op, oparg, cmp, cmparg) \
166 | ((oparg & 0xfff) << 12) | (cmparg & 0xfff))
/third_party/python/Objects/clinic/
H A Dcodeobject.c.h404 "_varname_from_oparg($self, /, oparg)\n"
407 "(internal-only) Return the local variable name for the given oparg.\n"
415 code__varname_from_oparg_impl(PyCodeObject *self, int oparg);
421 static const char * const _keywords[] = {"oparg", NULL}; in code__varname_from_oparg()
424 int oparg; in code__varname_from_oparg() local
430 oparg = _PyLong_AsInt(args[0]); in code__varname_from_oparg()
431 if (oparg == -1 && PyErr_Occurred()) { in code__varname_from_oparg()
434 return_value = code__varname_from_oparg_impl(self, oparg); in code__varname_from_oparg()
/third_party/python/Include/internal/
H A Dpycore_code.h250 int nargs, PyObject *kwnames, int oparg);
252 int oparg, PyObject **locals);
254 _Py_CODEUNIT *instr, int oparg);
256 int oparg);
/third_party/python/Objects/
H A Dframeobject.c110 // Given the index of the effective opcode, scan back to construct the oparg
117 unsigned int oparg = _Py_OPARG(codestr[i]); in get_arg() local
119 oparg |= _Py_OPARG(word) << 8; in get_arg()
121 oparg |= _Py_OPARG(word) << 16; in get_arg()
123 oparg |= _Py_OPARG(word) << 24; in get_arg()
127 return oparg; in get_arg()
1077 _PyFrame_OpAlreadyRan(_PyInterpreterFrame *frame, int opcode, int oparg) in _PyFrame_OpAlreadyRan() argument
1087 if (check_opcode == opcode && check_oparg == oparg) { in _PyFrame_OpAlreadyRan()
H A Dcodeobject.c1993 oparg: int
1995 (internal-only) Return the local variable name for the given oparg.
2001 code__varname_from_oparg_impl(PyCodeObject *self, int oparg) in code__varname_from_oparg_impl() argument
2004 PyObject *name = PyTuple_GetItem(self->co_localsplusnames, oparg); in code__varname_from_oparg_impl()
/third_party/python/Lib/
H A Ddis.py589 # Rely on C `int` being 32 bits for oparg
608 # The oparg is stored as a signed integer
665 for i, (op, oparg) in enumerate(opargs):
672 yield (names[oparg], level, fromlist)

Completed in 26 milliseconds