Lines Matching defs:code

111 // with EXTENDED_ARG. This only works correctly with *unquickened* code,
226 /* These functions are useful for debugging the stack marking code */
283 _Py_CODEUNIT *code = (_Py_CODEUNIT *)PyBytes_AS_STRING(co_code);
310 opcode = _Py_OPCODE(code[i]);
320 int j = get_arg(code, i);
353 j = get_arg(code, i) + i + 1;
360 j = get_arg(code, i) + i + 1;
367 j = i + 1 - get_arg(code, i);
385 j = get_arg(code, i) + i + 1;
419 if (_Py_OPARG(code[i]) & 1) {
441 int n = get_arg(code, i);
448 int n = get_arg(code, i);
455 int delta = PyCompile_OpcodeStackEffect(opcode, get_arg(code, i));
531 return "can't jump into an exception handler, or code may be unreachable";
550 marklines(PyCodeObject *code, int len)
553 _PyCode_InitAddressRange(code, &bounds);
627 * order to jump to a given line of code, subject to some restrictions. Most
629 * state of the stack (obvious because you could remove the line and the code
656 * This code preserves the historical restrictions on
692 /* Fail if the line falls outside the code block and
693 select first line with actual code. */
710 "line %d comes before the current code block",
726 "line %d comes after the current code block",
758 msg = "can't jump from unreachable code";
868 /* Don't clear code object until the end */
944 PyCodeObject *code = f->f_frame->f_code;
945 res += (code->co_nlocalsplus+code->co_stacksize) * sizeof(PyObject *);
956 PyCodeObject *code = f->f_frame->f_code;
958 "<frame at %p, file %R, line %d, code %S>",
959 f, code->co_filename, lineno, code->co_name);
1011 PyCodeObject *code = (PyCodeObject *)func->func_code;
1012 _PyFrame_InitializeSpecials(frame, func, locals, code->co_nlocalsplus);
1014 for (Py_ssize_t i = 0; i < code->co_nlocalsplus; i++) {
1020 _PyFrame_New_NoTrack(PyCodeObject *code)
1023 int slots = code->co_nlocalsplus + code->co_stacksize;
1039 PyFrame_New(PyThreadState *tstate, PyCodeObject *code,
1049 .fc_name = code->co_name,
1050 .fc_qualname = code->co_name,
1051 .fc_code = (PyObject *)code,
1060 PyFrameObject *f = _PyFrame_New_NoTrack(code);
1069 f->f_frame->prev_instr = _PyCode_CODE(code) + code->_co_firsttraceable;
1312 PyCodeObject *code = frame->f_frame->f_code;
1313 assert(code != NULL);
1314 Py_INCREF(code);
1315 return code;