Lines Matching refs:obj
43 #define OBJ_RELEASE(obj) zend_object_release(obj) argument
65 static zend_always_inline void zend_object_store_ctor_failed(zend_object *obj) in zend_object_store_ctor_failed() argument
67 GC_ADD_FLAGS(obj, IS_OBJ_DESTRUCTOR_CALLED); in zend_object_store_ctor_failed()
72 static zend_always_inline void zend_object_release(zend_object *obj) in END_EXTERN_C()
74 if (GC_DELREF(obj) == 0) { in END_EXTERN_C()
75 zend_objects_store_del(obj); in END_EXTERN_C()
76 } else if (UNEXPECTED(GC_MAY_LEAK((zend_refcounted*)obj))) { in END_EXTERN_C()
77 gc_possible_root((zend_refcounted*)obj); in END_EXTERN_C()
91 void *obj = emalloc(obj_size + zend_object_properties_size(ce)); in zend_object_alloc() local
94 memset(obj, 0, obj_size - sizeof(zval)); in zend_object_alloc()
95 return obj; in zend_object_alloc()
98 static inline zend_property_info *zend_get_property_info_for_slot(zend_object *obj, zval *slot) in zend_get_property_info_for_slot() argument
100 zend_property_info **table = obj->ce->properties_info_table; in zend_get_property_info_for_slot()
101 intptr_t prop_num = slot - obj->properties_table; in zend_get_property_info_for_slot()
102 ZEND_ASSERT(prop_num >= 0 && prop_num < obj->ce->default_properties_count); in zend_get_property_info_for_slot()
107 static inline zend_property_info *zend_get_typed_property_info_for_slot(zend_object *obj, zval *slo… in zend_get_typed_property_info_for_slot() argument
109 zend_property_info *prop_info = zend_get_property_info_for_slot(obj, slot); in zend_get_typed_property_info_for_slot()