Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dobject.c105 _PyObject_ASSERT(op, (op->_ob_prev == NULL) == (op->_ob_next == NULL)); in _Py_AddToAllObjects()
232 _PyObject_ASSERT(self, in PyObject_CallFinalizerFromDealloc()
1009 _PyObject_ASSERT(name, Py_REFCNT(name) >= 1); in PyObject_SetAttr()
1046 _PyObject_ASSERT(obj, dictoffset > 0); in _PyObject_GetDictPtr()
1047 _PyObject_ASSERT(obj, dictoffset % SIZEOF_VOID_P == 0); in _PyObject_GetDictPtr()
1220 _PyObject_ASSERT(obj, size <= PY_SSIZE_T_MAX); in _PyObject_GenericGetAttrWithDict()
1223 _PyObject_ASSERT(obj, dictoffset > 0); in _PyObject_GenericGetAttrWithDict()
1224 _PyObject_ASSERT(obj, dictoffset % SIZEOF_VOID_P == 0); in _PyObject_GenericGetAttrWithDict()
2035 _PyObject_ASSERT(op, _PyObject_IS_GC(op)); in _PyTrash_deposit_object()
2036 _PyObject_ASSERT(op, !_PyObject_GC_IS_TRACKED(op)); in _PyTrash_deposit_object()
[all …]
Dtypeobject.c1203 _PyObject_ASSERT((PyObject *)type, type->tp_flags & Py_TPFLAGS_HEAPTYPE); in subtype_dealloc()
2243 _PyObject_ASSERT((PyObject *)type, in subtype_getweakref()
2245 _PyObject_ASSERT((PyObject *)type, in subtype_getweakref()
3462 _PyObject_ASSERT((PyObject *)type, type->tp_flags & Py_TPFLAGS_HEAPTYPE); in type_dealloc()
3691 _PyObject_ASSERT((PyObject *)type, type->tp_flags & Py_TPFLAGS_HEAPTYPE); in type_clear()
5378 _PyObject_ASSERT((PyObject *)type, in PyType_Ready()
5388 _PyObject_ASSERT((PyObject *)type, type->tp_descr_get != NULL); in PyType_Ready()
5391 _PyObject_ASSERT((PyObject *)type, type->tp_vectorcall_offset > 0); in PyType_Ready()
5392 _PyObject_ASSERT((PyObject *)type, type->tp_call != NULL); in PyType_Ready()
/third_party/python/Modules/
Dgcmodule.c433 _PyObject_ASSERT(FROM_GC(gc), gc_get_refs(gc) != 0); in update_refs()
441 _PyObject_ASSERT(_PyObject_CAST(parent), !_PyObject_IsFreed(op)); in visit_decref()
508 _PyObject_ASSERT(FROM_GC(prev), in visit_reachable()
510 _PyObject_ASSERT(FROM_GC(next), in visit_reachable()
675 _PyObject_ASSERT(op, gc->_gc_next & NEXT_MASK_UNREACHABLE); in move_legacy_finalizers()
695 _PyObject_ASSERT((PyObject*)FROM_GC(gc), gc->_gc_next & NEXT_MASK_UNREACHABLE); in clear_unreachable_mask()
803 _PyObject_ASSERT((PyObject *)wr, wr->wr_object == op); in handle_weakrefs()
805 _PyObject_ASSERT((PyObject *)wr, wr->wr_object == Py_None); in handle_weakrefs()
868 _PyObject_ASSERT(op, PyWeakref_Check(op)); in handle_weakrefs()
871 _PyObject_ASSERT(op, callback != NULL); in handle_weakrefs()
[all …]
/third_party/python/Include/cpython/
Dobject.h424 #define _PyObject_ASSERT(obj, expr) \ macro