Home
last modified time | relevance | path

Searched refs:lnotab (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_new.py122 lnotab = c.co_lnotab
128 firstlineno, lnotab, freevars, cellvars)
133 firstlineno, lnotab)
138 constants, names, varnames, filename, name, firstlineno, lnotab)
143 constants, names, varnames, filename, name, firstlineno, lnotab)
148 constants, (5,), varnames, filename, name, firstlineno, lnotab)
156 firstlineno, lnotab)
/external/python/cpython2/Lib/compiler/
Dpyassem.py506 self.lnotab = lnotab = LineAddrTable()
510 lnotab.addCode(self.opnum[opname])
514 lnotab.nextLine(oparg)
518 lnotab.addCode(self.opnum[opname], lo, hi)
540 self.lnotab.getCode(), self.getConsts(),
542 self.filename, self.name, self.lnotab.firstline,
543 self.lnotab.getTable(), tuple(self.freevars),
608 self.lnotab = []
634 push = self.lnotab.append
651 return ''.join(map(chr, self.lnotab))
/external/python/cpython2/Objects/
Dcodeobject.c97 PyObject *lnotab) in PyCode_New() argument
110 lnotab == NULL || !PyString_Check(lnotab) || in PyCode_New()
143 Py_INCREF(lnotab); in PyCode_New()
144 co->co_lnotab = lnotab; in PyCode_New()
285 PyObject *lnotab; in code_new() local
294 &firstlineno, &lnotab, in code_new()
335 name, firstlineno, lnotab); in code_new()
Dframeobject.c104 unsigned char *lnotab = NULL; /* Iterating over co_lnotab */ in frame_setlineno() local
175 lnotab = (unsigned char *) tmp; in frame_setlineno()
180 addr += lnotab[offset]; in frame_setlineno()
181 line += lnotab[offset+1]; in frame_setlineno()
Dlnotab_notes.txt69 that the same line may appear multiple times in the lnotab, either because the
/external/python/cpython3/Objects/
Dcodeobject.c122 PyObject *lnotab) in PyCode_NewWithPosOnlyArgs() argument
140 lnotab == NULL || !PyBytes_Check(lnotab)) { in PyCode_NewWithPosOnlyArgs()
253 Py_INCREF(lnotab); in PyCode_NewWithPosOnlyArgs()
254 co->co_lnotab = lnotab; in PyCode_NewWithPosOnlyArgs()
272 PyObject *lnotab) in PyCode_New() argument
277 name, firstlineno, lnotab); in PyCode_New()
463 PyObject *lnotab; in code_new() local
473 &firstlineno, &lnotab, in code_new()
536 name, firstlineno, lnotab); in code_new()
Dlnotab_notes.txt7 for lnotab to contain bytecode offsets that are no longer valid (for example
78 that the same line may appear multiple times in the lnotab, either because the
/external/python/cpython3/Python/
Dpeephole.c237 unsigned char *lnotab; in PyCode_Optimize() local
250 lnotab = (unsigned char*)PyBytes_AS_STRING(lnotab_obj); in PyCode_Optimize()
259 if (lnotab[i] == 255) { in PyCode_Optimize()
471 cum_orig_offset += lnotab[i]; in PyCode_Optimize()
477 lnotab[i] = (unsigned char)offset_delta; in PyCode_Optimize()
Dmarshal.c1315 PyObject *lnotab = NULL; in r_object() local
1370 lnotab = r_object(p); in r_object()
1371 if (lnotab == NULL) in r_object()
1385 firstlineno, lnotab); in r_object()
1397 Py_XDECREF(lnotab); in r_object()
Dcompile.c5604 unsigned char *lnotab; in assemble_lnotab() local
5630 lnotab = (unsigned char *) in assemble_lnotab()
5633 *lnotab++ = 255; in assemble_lnotab()
5634 *lnotab++ = 0; in assemble_lnotab()
5668 lnotab = (unsigned char *) in assemble_lnotab()
5670 *lnotab++ = d_bytecode; in assemble_lnotab()
5671 *lnotab++ = k; in assemble_lnotab()
5674 *lnotab++ = 0; in assemble_lnotab()
5675 *lnotab++ = k; in assemble_lnotab()
5686 lnotab = (unsigned char *) in assemble_lnotab()
[all …]
/external/python/cpython3/Doc/c-api/
Dcode.rst36 …reevars, PyObject *cellvars, PyObject *filename, PyObject *name, int firstlineno, PyObject *lnotab)
43 …reevars, PyObject *cellvars, PyObject *filename, PyObject *name, int firstlineno, PyObject *lnotab)
/external/python/cpython2/Lib/
Dtrace.py328 lnotab = find_executable_linenos(filename)
330 lnotab = {}
335 lnotab, count)
357 def write_results_file(self, path, lines, lnotab, lines_hit): argument
383 if lineno in lnotab and not PRAGMA_NOCOVER in lines[i]:
/external/python/cpython3/Lib/
Dtrace.py267 lnotab = _find_executable_linenos(filename)
269 lnotab = {}
275 lnotab, count, encoding)
296 def write_results_file(self, path, lines, lnotab, lines_hit, encoding=None): argument
317 elif lineno in lnotab and not PRAGMA_NOCOVER in line:
/external/python/cpython3/Lib/test/
Dtest_peepholer.py46 lnotab = list(dis.findlinestarts(code))
49 min_bytecode = min(t[0] for t in lnotab)
50 max_bytecode = max(t[0] for t in lnotab)
/external/python/cpython3/Include/cpython/
Dcode.h159 PyObject *names, PyObject *lnotab);
/external/python/cpython2/Python/
Dmarshal.c1018 PyObject *lnotab = NULL; in r_object() local
1052 lnotab = r_object(p); in r_object()
1053 if (lnotab == NULL) in r_object()
1060 firstlineno, lnotab); in r_object()
1071 Py_XDECREF(lnotab); in r_object()
Dcompile.c3555 unsigned char *lnotab; in assemble_lnotab() local
3582 lnotab = (unsigned char *) in assemble_lnotab()
3585 *lnotab++ = 255; in assemble_lnotab()
3586 *lnotab++ = 0; in assemble_lnotab()
3608 lnotab = (unsigned char *) in assemble_lnotab()
3610 *lnotab++ = d_bytecode; in assemble_lnotab()
3611 *lnotab++ = 255; in assemble_lnotab()
3614 *lnotab++ = 0; in assemble_lnotab()
3615 *lnotab++ = 255; in assemble_lnotab()
3626 lnotab = (unsigned char *) in assemble_lnotab()
[all …]
/external/python/cpython2/Doc/c-api/
Dcode.rst36 …reevars, PyObject *cellvars, PyObject *filename, PyObject *name, int firstlineno, PyObject *lnotab)
/external/python/cpython2/Doc/library/
Dnew.rst49 …als, stacksize, flags, codestring, constants, names, varnames, filename, name, firstlineno, lnotab)
/external/python/cpython3/Doc/data/
Drefcounts.dat253 PyCode_NewWithPosOnlyArgs:PyObject*:lnotab:0:
270 PyCode_New:PyObject*:lnotab:0: