Home
last modified time | relevance | path

Searched refs:dictoffset (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Objects/
H A Dobject.c1064 Py_ssize_t dictoffset; in _PyObject_DictPointer() local
1070 dictoffset = tp->tp_dictoffset; in _PyObject_DictPointer()
1071 if (dictoffset == 0) in _PyObject_DictPointer()
1073 if (dictoffset < 0) { in _PyObject_DictPointer()
1080 dictoffset += (Py_ssize_t)size; in _PyObject_DictPointer()
1082 _PyObject_ASSERT(obj, dictoffset > 0); in _PyObject_DictPointer()
1083 _PyObject_ASSERT(obj, dictoffset % SIZEOF_VOID_P == 0); in _PyObject_DictPointer()
1085 return (PyObject **) ((char *)obj + dictoffset); in _PyObject_DictPointer()
H A Dtypeobject.c2249 ADDED_FIELD_AT_OFFSET(dictoffset, t_size)) { in extra_ivars()
3385 Py_ssize_t nmembers, weaklistoffset, dictoffset, vectorcalloffset; in PyType_FromModuleAndSpec() local
3389 nmembers = weaklistoffset = dictoffset = vectorcalloffset = 0; in PyType_FromModuleAndSpec()
3405 dictoffset = memb->offset; in PyType_FromModuleAndSpec()
3601 if (dictoffset) { in PyType_FromModuleAndSpec()
3602 type->tp_dictoffset = dictoffset; in PyType_FromModuleAndSpec()
/third_party/python/Tools/gdb/
H A Dlibpython.py478 dictoffset = int_from_int(typeobj.field('tp_dictoffset'))
479 if dictoffset != 0:
480 if dictoffset < 0:
486 dictoffset += size
487 assert dictoffset % _sizeof_void_p() == 0
489 dictptr = self._gdbval.cast(_type_char_ptr()) + dictoffset
/third_party/python/Python/
H A Dspecialize.c971 Py_ssize_t dictoffset = owner_cls->tp_dictoffset; in _Py_Specialize_LoadMethod() local
972 if (dictoffset < 0 || dictoffset > INT16_MAX) { in _Py_Specialize_LoadMethod()
976 if (dictoffset == 0) { in _Py_Specialize_LoadMethod()
981 PyObject *dict = *(PyObject **) ((char *)owner + dictoffset); in _Py_Specialize_LoadMethod()
H A Dceval.c4581 int dictoffset = *(int16_t *)&cache->dict_offset; local
4582 PyDictObject **dictptr = (PyDictObject**)(((char *)self)+dictoffset);
4584 dictoffset == MANAGED_DICT_OFFSET ||
4585 (dictoffset == self_cls->tp_dictoffset && dictoffset > 0)

Completed in 28 milliseconds