Lines Matching refs:obj

45 #define OBJ_RELEASE(obj) zend_object_release(obj)  argument
67 static zend_always_inline void zend_object_store_ctor_failed(zend_object *obj) in zend_object_store_ctor_failed() argument
69 GC_ADD_FLAGS(obj, IS_OBJ_DESTRUCTOR_CALLED); in zend_object_store_ctor_failed()
74 static zend_always_inline void zend_object_release(zend_object *obj) in END_EXTERN_C()
76 if (GC_DELREF(obj) == 0) { in END_EXTERN_C()
77 zend_objects_store_del(obj); in END_EXTERN_C()
78 } else if (UNEXPECTED(GC_MAY_LEAK((zend_refcounted*)obj))) { in END_EXTERN_C()
79 gc_possible_root((zend_refcounted*)obj); in END_EXTERN_C()
94 void *obj = emalloc(obj_size + zend_object_properties_size(ce)); in zend_object_alloc() local
95 memset(obj, 0, obj_size - sizeof(zend_object)); in zend_object_alloc()
96 return obj; in zend_object_alloc()
101 static inline zend_property_info *zend_get_property_info_for_slot_self(zend_object *obj, zval *slot) in zend_get_property_info_for_slot_self() argument
103 zend_property_info **table = obj->ce->properties_info_table; in zend_get_property_info_for_slot_self()
104 intptr_t prop_num = slot - obj->properties_table; in zend_get_property_info_for_slot_self()
105 ZEND_ASSERT(prop_num >= 0 && prop_num < obj->ce->default_properties_count); in zend_get_property_info_for_slot_self()
109 static inline zend_property_info *zend_get_property_info_for_slot(zend_object *obj, zval *slot) in zend_get_property_info_for_slot() argument
111 if (UNEXPECTED(zend_object_is_lazy_proxy(obj))) { in zend_get_property_info_for_slot()
112 return zend_lazy_object_get_property_info_for_slot(obj, slot); in zend_get_property_info_for_slot()
114 zend_property_info **table = obj->ce->properties_info_table; in zend_get_property_info_for_slot()
115 intptr_t prop_num = slot - obj->properties_table; in zend_get_property_info_for_slot()
116 ZEND_ASSERT(prop_num >= 0 && prop_num < obj->ce->default_properties_count); in zend_get_property_info_for_slot()
121 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
123 zend_property_info *prop_info = zend_get_property_info_for_slot(obj, slot); in zend_get_typed_property_info_for_slot()