Lines Matching refs:object

28 ZEND_API void ZEND_FASTCALL zend_object_std_init(zend_object *object, zend_class_entry *ce)  in zend_object_std_init()  argument
30 GC_SET_REFCOUNT(object, 1); in zend_object_std_init()
31 GC_TYPE_INFO(object) = IS_OBJECT | (GC_COLLECTABLE << GC_FLAGS_SHIFT); in zend_object_std_init()
32 object->ce = ce; in zend_object_std_init()
33 object->properties = NULL; in zend_object_std_init()
34 zend_objects_store_put(object); in zend_object_std_init()
36 ZVAL_UNDEF(object->properties_table + object->ce->default_properties_count); in zend_object_std_init()
40 ZEND_API void zend_object_std_dtor(zend_object *object) in zend_object_std_dtor() argument
44 if (object->properties) { in zend_object_std_dtor()
45 if (EXPECTED(!(GC_FLAGS(object->properties) & IS_ARRAY_IMMUTABLE))) { in zend_object_std_dtor()
46 if (EXPECTED(GC_DELREF(object->properties) == 0) in zend_object_std_dtor()
47 && EXPECTED(GC_TYPE(object->properties) != IS_NULL)) { in zend_object_std_dtor()
48 zend_array_destroy(object->properties); in zend_object_std_dtor()
52 p = object->properties_table; in zend_object_std_dtor()
53 if (EXPECTED(object->ce->default_properties_count)) { in zend_object_std_dtor()
54 end = p + object->ce->default_properties_count; in zend_object_std_dtor()
60 if (UNEXPECTED(object->ce->ce_flags & ZEND_ACC_USE_GUARDS)) { in zend_object_std_dtor()
74 ZEND_API void zend_objects_destroy_object(zend_object *object) in zend_objects_destroy_object() argument
76 zend_function *destructor = object->ce->destructor; in zend_objects_destroy_object()
92 if (object->ce != scope) { in zend_objects_destroy_object()
95 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object()
102 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object()
114 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object()
121 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object()
127 GC_ADDREF(object); in zend_objects_destroy_object()
135 if (EG(exception) == object) { in zend_objects_destroy_object()
148 fci.object = object; in zend_objects_destroy_object()
156 fcic.called_scope = object->ce; in zend_objects_destroy_object()
157 fcic.object = object; in zend_objects_destroy_object()
169 OBJ_RELEASE(object); in zend_objects_destroy_object()
176 zend_object *object = emalloc(sizeof(zend_object) + zend_object_properties_size(ce)); in zend_objects_new() local
178 zend_object_std_init(object, ce); in zend_objects_new()
179 object->handlers = &std_object_handlers; in zend_objects_new()
180 return object; in zend_objects_new()
249 fci.object = new_object; in zend_objects_clone_members()
258 fcic.object = new_object; in zend_objects_clone_members()