Home
last modified time | relevance | path

Searched refs:dictoffset (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Objects/
Dobject.c1072 Py_ssize_t dictoffset; in _PyObject_GetDictPtr() local
1075 dictoffset = tp->tp_dictoffset; in _PyObject_GetDictPtr()
1076 if (dictoffset == 0) in _PyObject_GetDictPtr()
1078 if (dictoffset < 0) { in _PyObject_GetDictPtr()
1085 dictoffset += (long)size; in _PyObject_GetDictPtr()
1086 _PyObject_ASSERT(obj, dictoffset > 0); in _PyObject_GetDictPtr()
1087 _PyObject_ASSERT(obj, dictoffset % SIZEOF_VOID_P == 0); in _PyObject_GetDictPtr()
1089 return (PyObject **) ((char *)obj + dictoffset); in _PyObject_GetDictPtr()
1220 Py_ssize_t dictoffset; in _PyObject_GenericGetAttrWithDict() local
1254 dictoffset = tp->tp_dictoffset; in _PyObject_GenericGetAttrWithDict()
[all …]
Dtypeobject.c3378 Py_ssize_t nmembers, weaklistoffset, dictoffset, vectorcalloffset; in PyType_FromModuleAndSpec() local
3382 nmembers = weaklistoffset = dictoffset = vectorcalloffset = 0; in PyType_FromModuleAndSpec()
3398 dictoffset = memb->offset; in PyType_FromModuleAndSpec()
3581 if (dictoffset) { in PyType_FromModuleAndSpec()
3582 type->tp_dictoffset = dictoffset; in PyType_FromModuleAndSpec()
/third_party/python/Tools/gdb/
Dlibpython.py499 dictoffset = int_from_int(typeobj.field('tp_dictoffset'))
500 if dictoffset != 0:
501 if dictoffset < 0:
507 dictoffset += size
508 assert dictoffset > 0
509 assert dictoffset % _sizeof_void_p() == 0
511 dictptr = self._gdbval.cast(_type_char_ptr()) + dictoffset
/third_party/python/Doc/c-api/
Dtypeobj.rst1720 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset
1721 if dictoffset is not aligned on sizeof(void*):