Home
last modified time | relevance | path

Searched refs:nlocals (Results 1 - 4 of 4) sorted by relevance

/third_party/python/Tools/scripts/
H A Ddeepfreeze.py62 nlocals = 0
69 nlocals += 1
77 assert nlocals == len(code.co_varnames) == code.co_nlocals, \
78 (nlocals, len(code.co_varnames), code.co_nlocals)
81 assert len(names) == nlocals + nplaincellvars + nfreevars
82 return nlocals, nplaincellvars, ncellvars, nfreevars
254 nlocals, nplaincellvars, ncellvars, nfreevars = \
/third_party/python/Objects/
H A Dcodeobject.c172 int nlocals = 0; in get_localsplus_counts() local
180 nlocals += 1; in get_localsplus_counts()
194 *pnlocals = nlocals; in get_localsplus_counts()
270 * Note that totalargs = nlocals - nplainlocals. We check nplainlocals in _PyCode_Validate()
272 int nlocals; in _PyCode_Validate() local
274 &nlocals, NULL, NULL, NULL); in _PyCode_Validate()
275 int nplainlocals = nlocals - in _PyCode_Validate()
292 int nlocals, nplaincellvars, ncellvars, nfreevars; in init_code() local
294 &nlocals, &nplaincellvars, &ncellvars, &nfreevars); in init_code()
329 co->co_nlocals = nlocals; in init_code()
498 PyCode_NewWithPosOnlyArgs(int argcount, int posonlyargcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, PyObject *qualname, int firstlineno, PyObject *linetable, PyObject *exceptiontable) PyCode_NewWithPosOnlyArgs() argument
622 PyCode_New(int argcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, PyObject *qualname, int firstlineno, PyObject *linetable, PyObject *exceptiontable) PyCode_New() argument
1522 code_new_impl(PyTypeObject *type, int argcount, int posonlyargcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *filename, PyObject *name, PyObject *qualname, int firstlineno, PyObject *linetable, PyObject *exceptiontable, PyObject *freevars, PyObject *cellvars) code_new_impl() argument
[all...]
/third_party/python/Objects/clinic/
H A Dcodeobject.c.h6 "code(argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize,\n"
16 int kwonlyargcount, int nlocals, int stacksize, int flags,
30 int nlocals; in code_new() local
66 nlocals = _PyLong_AsInt(PyTuple_GET_ITEM(args, 3)); in code_new()
67 if (nlocals == -1 && PyErr_Occurred()) { in code_new()
153 return_value = code_new_impl(type, argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags, code, consts, names, varnames, filename, name, qualname, firstlineno, linetable, exceptiontable, freevars, cellvars); in code_new()
/third_party/python/Python/
H A Dcompile.c7951 int nlocals = (int)PyDict_GET_SIZE(c->u->u_varnames); in compute_localsplus_info() local
7964 offset += nlocals - numdropped; in compute_localsplus_info()
7973 offset += nlocals - numdropped; in compute_localsplus_info()
8130 int nlocals = (int)PyDict_GET_SIZE(c->u->u_varnames); in build_cellfixedoffsets() local
8141 fixed[i] = nlocals + i; in build_cellfixedoffsets()
8299 int nlocals = (int)PyDict_GET_SIZE(c->u->u_varnames); in fix_cell_offsets() local
8307 if (fixedmap[i] == i + nlocals) { in fix_cell_offsets()
8386 int nlocals = (int)PyDict_GET_SIZE(c->u->u_varnames); in assemble() local
8389 assert(INT_MAX - nlocals - ncellvars > 0); in assemble()
8390 assert(INT_MAX - nlocals in assemble()
[all...]

Completed in 13 milliseconds