Home
last modified time | relevance | path

Searched refs:co_nlocals (Results 1 – 25 of 30) sorted by relevance

12

/external/python/cpython3/Objects/clinic/
Dcodeobject.c.h22 int co_nlocals, int co_stacksize, int co_flags,
40 int co_nlocals = self->co_nlocals; in code_replace() local
109 co_nlocals = _PyLong_AsInt(args[3]); in code_replace()
110 if (co_nlocals == -1 && PyErr_Occurred()) { in code_replace()
251 …replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, c… in code_replace()
/external/python/cpython2/Objects/
Dframeobject.c543 …slots = f->f_code->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_c… in frame_traverse()
576 …slots = f->f_code->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_c… in frame_clear()
595 extras = f->f_code->co_stacksize + f->f_code->co_nlocals + in frame_sizeof()
713 extras = code->co_stacksize + code->co_nlocals + ncells + in PyFrame_New()
739 extras = code->co_nlocals + ncells + nfrees; in PyFrame_New()
929 if (j > co->co_nlocals) in PyFrame_FastToLocals()
930 j = co->co_nlocals; in PyFrame_FastToLocals()
931 if (co->co_nlocals) in PyFrame_FastToLocals()
937 locals, fast + co->co_nlocals, 1); in PyFrame_FastToLocals()
948 locals, fast + co->co_nlocals + ncells, 1); in PyFrame_FastToLocals()
[all …]
Dcodeobject.c123 co->co_nlocals = nlocals; in PyCode_New()
202 {"co_nlocals", T_INT, OFF(co_nlocals), READONLY},
391 cmp = co->co_nlocals - cp->co_nlocals; in code_compare()
576 eq = co->co_nlocals == cp->co_nlocals; in code_richcompare()
646 co->co_argcount ^ co->co_nlocals ^ co->co_flags; in code_hash()
/external/python/cpython3/Objects/
Dframeobject.c617 return (code->co_nlocals in frame_nslots()
703 extras = code->co_stacksize + code->co_nlocals + ncells + nfrees; in frame_sizeof()
783 Py_ssize_t extras = code->co_stacksize + code->co_nlocals + ncells + nfrees; in frame_alloc()
812 extras = code->co_nlocals + ncells + nfrees; in frame_alloc()
1093 if (j > co->co_nlocals) in PyFrame_FastToLocalsWithError()
1094 j = co->co_nlocals; in PyFrame_FastToLocalsWithError()
1095 if (co->co_nlocals) { in PyFrame_FastToLocalsWithError()
1103 locals, fast + co->co_nlocals, 1)) in PyFrame_FastToLocalsWithError()
1116 locals, fast + co->co_nlocals + ncells, 1) < 0) in PyFrame_FastToLocalsWithError()
1157 if (j > co->co_nlocals) in PyFrame_LocalsToFast()
[all …]
Dcodeobject.c232 co->co_nlocals = nlocals; in PyCode_NewWithPosOnlyArgs()
379 {"co_nlocals", T_INT, OFF(co_nlocals), READONLY},
640 int co_nlocals, int co_stacksize, int co_flags, in code_replace_impl() argument
658 CHECK_INT_ARG(co_nlocals); in code_replace_impl()
667 co_posonlyargcount, co_kwonlyargcount, co_nlocals, in code_replace_impl()
673 co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, in code_replace_impl()
853 eq = co->co_nlocals == cp->co_nlocals; in code_richcompare()
924 co->co_nlocals ^ co->co_flags; in code_hash()
/external/tensorflow/tensorflow/python/platform/
Dbenchmark.py60 new_code = types.CodeType(arg_num, func_code.co_nlocals,
71 0, func_code.co_nlocals,
79 new_code = types.CodeType(arg_num, 0, func_code.co_nlocals,
/external/python/cpython2/Include/
Dcode.h13 int co_nlocals; /* #local variables */ member
/external/python/cpython3/Include/cpython/
Dcode.h23 int co_nlocals; /* #local variables */ member
/external/libchrome/third_party/jinja2/
Ddebug.py272 code = CodeType(0, code.co_nlocals, code.co_stacksize,
279 code.co_nlocals, code.co_stacksize,
/external/python/cpython2/Lib/test/
Dtest_new.py112 nlocals = c.co_nlocals
Dtest_import.py505 code = type(code)(code.co_argcount, code.co_nlocals, code.co_stacksize,
Dtest_sys.py647 extras = x.f_code.co_stacksize + x.f_code.co_nlocals +\
/external/python/cpython3/Lib/test/
Dtest_code.py219 co.co_nlocals,
Dtest_sys.py1216 extras = x.f_code.co_stacksize + x.f_code.co_nlocals +\
/external/python/cpython2/Misc/
Dgdbinit37 while $_i < f->f_code->co_nlocals
/external/python/cpython3/Misc/
Dgdbinit40 while $_i < f->f_code->co_nlocals
/external/python/cpython3/Lib/
Ddis.py162 lines.append("Number of locals: %s" % co.co_nlocals)
/external/python/cpython2/Tools/gdb/
Dlibpython.py848 self.co_nlocals = int_from_int(self.co.field('co_nlocals'))
860 for i in safe_range(self.co_nlocals):
/external/python/cpython3/Tools/gdb/
Dlibpython.py862 self.co_nlocals = int_from_int(self.co.field('co_nlocals'))
874 for i in safe_range(self.co_nlocals):
/external/python/cpython2/Python/
Dceval.c1024 freevars = f->f_localsplus + co->co_nlocals; in PyEval_EvalFrameEx()
3390 freevars = f->f_localsplus + co->co_nlocals; in PyEval_EvalCodeEx()
3570 GETLOCAL(co->co_nlocals + i) = c; in PyEval_EvalCodeEx()
3579 SETLOCAL(co->co_nlocals + i, c); in PyEval_EvalCodeEx()
5185 f->f_code->co_nlocals); in string_concatenate()
Dmarshal.c432 w_long(co->co_nlocals, p); in w_object()
/external/python/cpython2/Lib/
Dmodulefinder.py609 return types.CodeType(co.co_argcount, co.co_nlocals, co.co_stacksize,
/external/python/cpython3/Python/
Dceval.c1302 freevars = f->f_localsplus + co->co_nlocals; in _PyEval_EvalFrameDefault()
4106 freevars = f->f_localsplus + co->co_nlocals; in _PyEval_EvalCode()
4290 SETLOCAL(co->co_nlocals + i, c); in _PyEval_EvalCode()
5525 f->f_code->co_nlocals); in unicode_concatenate()
Dmarshal.c515 w_long(co->co_nlocals, p); in w_complex_object()
/external/python/cpython2/Doc/library/
Dinspect.rst199 | | co_nlocals | number of local variables | |

12