• Home
  • Raw
  • Download

Lines Matching refs:co

451     PyCodeObject *co;  in frame_dealloc()  local
475 co = f->f_code; in frame_dealloc()
476 if (co->co_zombieframe == NULL) in frame_dealloc()
477 co->co_zombieframe = f; in frame_dealloc()
486 Py_DECREF(co); in frame_dealloc()
873 PyCodeObject *co; in PyFrame_FastToLocals() local
886 co = f->f_code; in PyFrame_FastToLocals()
887 map = co->co_varnames; in PyFrame_FastToLocals()
893 if (j > co->co_nlocals) in PyFrame_FastToLocals()
894 j = co->co_nlocals; in PyFrame_FastToLocals()
895 if (co->co_nlocals) in PyFrame_FastToLocals()
897 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_FastToLocals()
898 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_FastToLocals()
900 map_to_dict(co->co_cellvars, ncells, in PyFrame_FastToLocals()
901 locals, fast + co->co_nlocals, 1); in PyFrame_FastToLocals()
910 if (co->co_flags & CO_OPTIMIZED) { in PyFrame_FastToLocals()
911 map_to_dict(co->co_freevars, nfreevars, in PyFrame_FastToLocals()
912 locals, fast + co->co_nlocals + ncells, 1); in PyFrame_FastToLocals()
925 PyCodeObject *co; in PyFrame_LocalsToFast() local
931 co = f->f_code; in PyFrame_LocalsToFast()
932 map = co->co_varnames; in PyFrame_LocalsToFast()
940 if (j > co->co_nlocals) in PyFrame_LocalsToFast()
941 j = co->co_nlocals; in PyFrame_LocalsToFast()
942 if (co->co_nlocals) in PyFrame_LocalsToFast()
943 dict_to_map(co->co_varnames, j, locals, fast, 0, clear); in PyFrame_LocalsToFast()
944 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_LocalsToFast()
945 nfreevars = PyTuple_GET_SIZE(co->co_freevars); in PyFrame_LocalsToFast()
947 dict_to_map(co->co_cellvars, ncells, in PyFrame_LocalsToFast()
948 locals, fast + co->co_nlocals, 1, clear); in PyFrame_LocalsToFast()
950 if (co->co_flags & CO_OPTIMIZED) { in PyFrame_LocalsToFast()
951 dict_to_map(co->co_freevars, nfreevars, in PyFrame_LocalsToFast()
952 locals, fast + co->co_nlocals + ncells, 1, in PyFrame_LocalsToFast()