Lines Matching refs:obj
51 zend_object *obj = objects->object_buckets[i]; in zend_objects_store_call_destructors() local
52 if (IS_OBJ_VALID(obj)) { in zend_objects_store_call_destructors()
53 if (!(OBJ_FLAGS(obj) & IS_OBJ_DESTRUCTOR_CALLED)) { in zend_objects_store_call_destructors()
54 GC_ADD_FLAGS(obj, IS_OBJ_DESTRUCTOR_CALLED); in zend_objects_store_call_destructors()
56 if (obj->handlers->dtor_obj != zend_objects_destroy_object in zend_objects_store_call_destructors()
57 || obj->ce->destructor) { in zend_objects_store_call_destructors()
58 GC_ADDREF(obj); in zend_objects_store_call_destructors()
59 obj->handlers->dtor_obj(obj); in zend_objects_store_call_destructors()
60 GC_DELREF(obj); in zend_objects_store_call_destructors()
77 zend_object *obj = *obj_ptr; in zend_objects_store_mark_destructed() local
79 if (IS_OBJ_VALID(obj)) { in zend_objects_store_mark_destructed()
80 GC_ADD_FLAGS(obj, IS_OBJ_DESTRUCTOR_CALLED); in zend_objects_store_mark_destructed()
89 zend_object **obj_ptr, **end, *obj; in zend_objects_store_free_object_storage() local
103 obj = *obj_ptr; in zend_objects_store_free_object_storage()
104 if (IS_OBJ_VALID(obj)) { in zend_objects_store_free_object_storage()
105 if (!(OBJ_FLAGS(obj) & IS_OBJ_FREE_CALLED)) { in zend_objects_store_free_object_storage()
106 GC_ADD_FLAGS(obj, IS_OBJ_FREE_CALLED); in zend_objects_store_free_object_storage()
107 if (obj->handlers->free_obj != zend_object_std_dtor) { in zend_objects_store_free_object_storage()
108 GC_ADDREF(obj); in zend_objects_store_free_object_storage()
109 obj->handlers->free_obj(obj); in zend_objects_store_free_object_storage()
117 obj = *obj_ptr; in zend_objects_store_free_object_storage()
118 if (IS_OBJ_VALID(obj)) { in zend_objects_store_free_object_storage()
119 if (!(OBJ_FLAGS(obj) & IS_OBJ_FREE_CALLED)) { in zend_objects_store_free_object_storage()
120 GC_ADD_FLAGS(obj, IS_OBJ_FREE_CALLED); in zend_objects_store_free_object_storage()
121 GC_ADDREF(obj); in zend_objects_store_free_object_storage()
122 obj->handlers->free_obj(obj); in zend_objects_store_free_object_storage()