Searched refs:co_lnotab (Results 1 – 19 of 19) sorted by relevance
/third_party/python/Objects/clinic/ |
D | codeobject.c.h | 27 PyObject *co_name, PyBytesObject *co_lnotab); 52 PyBytesObject *co_lnotab = (PyBytesObject *)self->co_lnotab; in code_replace() local 249 co_lnotab = (PyBytesObject *)args[15]; in code_replace() 251 …code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, co_name, co_lnotab); in code_replace()
|
/third_party/python/Objects/ |
D | lnotab_notes.txt | 1 All about co_lnotab, the line number table. 3 Code objects store a field named co_lnotab. This is an array of unsigned bytes 39 That's the delicate part. A user of co_lnotab desiring to find the source 44 for addr_incr, line_incr in co_lnotab: 118 and the co_lnotab will claim that execution has moved to line 4, which is wrong. 123 co_lnotab indicates we have jumped to the *start* of a line, i.e. if the current 125 co_lnotab. For backward jumps, however, we always call the line trace function,
|
D | codeobject.c | 254 co->co_lnotab = lnotab; in PyCode_NewWithPosOnlyArgs() 391 {"co_lnotab", T_OBJECT, OFF(co_lnotab), READONLY}, 580 Py_XDECREF(co->co_lnotab); in code_dealloc() 645 PyObject *co_name, PyBytesObject *co_lnotab) in code_replace_impl() argument 676 co_firstlineno, (PyObject*)co_lnotab); in code_replace_impl() 985 Py_ssize_t size = PyBytes_Size(co->co_lnotab) / 2; in PyCode_Addr2Line() 986 unsigned char *p = (unsigned char*)PyBytes_AsString(co->co_lnotab); in PyCode_Addr2Line() 1008 p = (unsigned char*)PyBytes_AS_STRING(co->co_lnotab); in _PyCode_CheckLineNumber() 1009 size = PyBytes_GET_SIZE(co->co_lnotab) / 2; in _PyCode_CheckLineNumber()
|
D | frameobject.c | 247 Py_ssize_t size = PyBytes_GET_SIZE(code->co_lnotab) / 2; in marklines() 248 unsigned char *p = (unsigned char*)PyBytes_AS_STRING(code->co_lnotab); in marklines()
|
/third_party/python/Include/cpython/ |
D | code.h | 41 PyObject *co_lnotab; /* string (encoding addr<->lineno mapping) See member
|
/third_party/python/Lib/test/ |
D | test_code.py | 229 co.co_lnotab, 261 ("co_lnotab", code2.co_lnotab),
|
D | clinic.test | 3216 co_lnotab: PyBytesObject(c_default="(PyBytesObject *)self->co_lnotab") = None 3221 "test_keyword_only_parameter($module, /, *, co_lnotab=None)\n" 3229 test_keyword_only_parameter_impl(PyObject *module, PyBytesObject *co_lnotab); 3235 static const char * const _keywords[] = {"co_lnotab", NULL}; 3239 PyBytesObject *co_lnotab = (PyBytesObject *)self->co_lnotab; 3249 _PyArg_BadArgument("test_keyword_only_parameter", "argument 'co_lnotab'", "bytes", args[0]); 3252 co_lnotab = (PyBytesObject *)args[0]; 3254 return_value = test_keyword_only_parameter_impl(module, co_lnotab); 3261 test_keyword_only_parameter_impl(PyObject *module, PyBytesObject *co_lnotab)
|
D | test_compile.py | 157 self.assertEqual(co.co_lnotab, bytes())
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | debug.py | 276 code.co_lnotab, (), ()) 283 code.co_lnotab, (), ())
|
/third_party/python/Misc/ |
D | gdbinit | 60 set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2 61 set $__p = (unsigned char *)((PyBytesObject *)$__co->co_lnotab)->ob_sval
|
D | NEWS | 4507 bytecode offsets. Document that a code object's co_lnotab can contain 13476 anymore. It affects ``co_firstlineno`` and ``co_lnotab`` of code object 19618 - bpo-26107: The format of the ``co_lnotab`` attribute of code objects
|
D | HISTORY | 15659 - Fix a bug in the trace module where a bytes object from co_lnotab had its 22434 - SET_LINENO is gone. co_lnotab is now consulted to determine when to
|
/third_party/python/Lib/ |
D | dis.py | 455 byte_increments = code.co_lnotab[0::2] 456 line_increments = code.co_lnotab[1::2]
|
/third_party/python/Tools/gdb/ |
D | libpython.py | 651 co_lnotab = self.pyop_field('co_lnotab').proxyval(set()) 658 for addr_incr, line_incr in zip(co_lnotab[::2], co_lnotab[1::2]):
|
/third_party/python/Doc/library/ |
D | dis.rst | 235 This generator function uses the ``co_firstlineno`` and ``co_lnotab`` 238 See :source:`Objects/lnotab_notes.txt` for the ``co_lnotab`` format and
|
D | inspect.rst | 170 | | co_lnotab | encoded mapping of line |
|
/third_party/python/Python/ |
D | marshal.c | 527 w_object(co->co_lnotab, p); in w_complex_object()
|
/third_party/python/Doc/whatsnew/ |
D | 3.6.rst | 2160 * The format of the ``co_lnotab`` attribute of code objects changed to support 2164 Functions directly decoding ``co_lnotab`` should be updated to use a signed 2167 ``Objects/lnotab_notes.txt`` for the ``co_lnotab`` format and how to decode
|
/third_party/python/Doc/reference/ |
D | datamodel.rst | 932 single: co_lnotab (code object attribute) 957 the first line number of the function; :attr:`co_lnotab` is a string
|