Lines Matching refs:ce
30 static zend_always_inline void _zend_object_std_init(zend_object *object, zend_class_entry *ce) in _zend_object_std_init() argument
34 object->ce = ce; in _zend_object_std_init()
36 object->handlers = ce->default_object_handlers; in _zend_object_std_init()
39 if (UNEXPECTED(ce->ce_flags & ZEND_ACC_USE_GUARDS)) { in _zend_object_std_init()
40 zval *guard_value = object->properties_table + object->ce->default_properties_count; in _zend_object_std_init()
46 ZEND_API void ZEND_FASTCALL zend_object_std_init(zend_object *object, zend_class_entry *ce) in zend_object_std_init() argument
48 _zend_object_std_init(object, ce); in zend_object_std_init()
92 if (EXPECTED(object->ce->default_properties_count)) { in zend_object_std_dtor()
93 end = p + object->ce->default_properties_count; in zend_object_std_dtor()
100 if (UNEXPECTED(object->ce->ce_flags & ZEND_ACC_USE_GUARDS)) { in zend_object_std_dtor()
116 zend_function *destructor = object->ce->destructor; in zend_objects_destroy_object()
133 if (object->ce != scope) { in zend_objects_destroy_object()
136 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object()
145 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object()
157 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object()
166 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object()
208 ZEND_API zend_object* ZEND_FASTCALL zend_objects_new(zend_class_entry *ce) in zend_objects_new() argument
210 zend_object *object = emalloc(sizeof(zend_object) + zend_object_properties_size(ce)); in zend_objects_new()
212 _zend_object_std_init(object, ce); in zend_objects_new()
218 bool has_clone_method = old_object->ce->clone != NULL; in zend_objects_clone_members()
220 if (old_object->ce->default_properties_count) { in zend_objects_clone_members()
223 zval *end = src + old_object->ce->default_properties_count; in zend_objects_clone_members()
292 zend_call_known_instance_method_with_0_params(new_object->ce->clone, new_object, NULL); in zend_objects_clone_members()
294 if (ZEND_CLASS_HAS_READONLY_PROPS(new_object->ce)) { in zend_objects_clone_members()
295 for (uint32_t i = 0; i < new_object->ce->default_properties_count; i++) { in zend_objects_clone_members()
316 new_object = zend_objects_new(old_object->ce); in zend_objects_clone_obj()
319 if (new_object->ce->default_properties_count) { in zend_objects_clone_obj()
321 zval *end = p + new_object->ce->default_properties_count; in zend_objects_clone_obj()