/php-src/Zend/ |
H A D | zend_object_handlers.h | 56 #define ZEND_SET_PROPERTY_HOOK_SIMPLE_READ(cache_slot) \ argument 58 void **__cache_slot = (cache_slot); \ 63 #define ZEND_SET_PROPERTY_HOOK_SIMPLE_WRITE(cache_slot) \ argument 65 void **__cache_slot = (cache_slot); \ 70 #define ZEND_SET_PROPERTY_HOOK_SIMPLE_GET(cache_slot) \ argument 72 void **__cache_slot = (cache_slot); \ 120 … void (*zend_object_unset_property_t)(zend_object *object, zend_string *member, void **cache_slot); 260 …nd_std_get_property_ptr_ptr(zend_object *object, zend_string *member, int type, void **cache_slot); 262 …*zend_std_write_property(zend_object *object, zend_string *member, zval *value, void **cache_slot); 263 …_std_has_property(zend_object *object, zend_string *member, int has_set_exists, void **cache_slot); [all …]
|
H A D | zend_object_handlers.c | 357 if (cache_slot && EXPECTED(ce == CACHED_PTR_EX(cache_slot))) { in zend_get_property_offset() 358 *info_ptr = CACHED_PTR_EX(cache_slot + 2); in zend_get_property_offset() 371 if (cache_slot) { in zend_get_property_offset() 373 CACHE_PTR_EX(cache_slot + 2, NULL); in zend_get_property_offset() 430 if (cache_slot) { in zend_get_property_offset() 432 CACHE_PTR_EX(cache_slot + 2, property_info); in zend_get_property_offset() 443 if (cache_slot) { in zend_get_property_offset() 445 CACHE_PTR_EX(cache_slot + 2, property_info); in zend_get_property_offset() 771 if (cache_slot) { in zend_std_read_property() 830 if (EXPECTED(cache_slot in zend_std_read_property() [all …]
|
H A D | zend_execute.c | 1108 void **cache_slot, zend_type *type) in zend_fetch_ce_from_cache_slot() argument 1133 *cache_slot = (void *) ce; in zend_fetch_ce_from_cache_slot() 1141 void **cache_slot = *cache_slot_ptr; in zend_check_intersection_type_from_cache_slot() local 1158 *cache_slot_ptr = cache_slot; in zend_check_intersection_type_from_cache_slot() 3339 cache_slot = _cache_slot; in zend_fetch_property_address() 3341 ZEND_ASSERT(cache_slot); in zend_fetch_property_address() 3555 CACHE_PTR(cache_slot, ce); in zend_fetch_static_property_address_ex() 5290 if (EXPECTED(*cache_slot == fbc)) { in zend_get_arg_offset_by_name() 5301 *cache_slot = fbc; in zend_get_arg_offset_by_name() 5312 *cache_slot = fbc; in zend_get_arg_offset_by_name() [all …]
|
H A D | zend_vm_execute.h | 23523 void **cache_slot; in ZEND_ASSIGN_OBJ_OP_SPEC_VAR_CONST_HANDLER() local 23745 void **cache_slot; in ZEND_PRE_INC_OBJ_SPEC_VAR_CONST_HANDLER() local 23809 void **cache_slot; in ZEND_POST_INC_OBJ_SPEC_VAR_CONST_HANDLER() local 26509 void **cache_slot; in ZEND_ASSIGN_OBJ_OP_SPEC_VAR_TMPVAR_HANDLER() local 26733 void **cache_slot; in ZEND_PRE_INC_OBJ_SPEC_VAR_TMPVAR_HANDLER() local 26798 void **cache_slot; in ZEND_POST_INC_OBJ_SPEC_VAR_TMPVAR_HANDLER() local 30867 void **cache_slot; in ZEND_ASSIGN_OBJ_OP_SPEC_VAR_CV_HANDLER() local 31089 void **cache_slot; in ZEND_PRE_INC_OBJ_SPEC_VAR_CV_HANDLER() local 31153 void **cache_slot; in ZEND_POST_INC_OBJ_SPEC_VAR_CV_HANDLER() local 33536 void **cache_slot; in ZEND_ASSIGN_OBJ_OP_SPEC_UNUSED_CONST_HANDLER() local [all …]
|
H A D | zend_vm_def.h | 1016 void **cache_slot; variable 1287 void **cache_slot; variable 1357 void **cache_slot; variable 2038 void **cache_slot = NULL; variable 2245 void **cache_slot = NULL; variable 4413 void *cache_slot = CACHE_ADDR(opline->op2.num); variable 5231 void *cache_slot[2] = {NULL, NULL}; in ZEND_HASH_FOREACH_STR_KEY_VAL() local 5233 EX(call)->func, name, cache_slot) + 1; in ZEND_HASH_FOREACH_STR_KEY_VAL() 5249 void *cache_slot[2] = {NULL, NULL}; in ZEND_HASH_FOREACH_STR_KEY_VAL() local 5345 void *cache_slot[2] = {NULL, NULL}; variable [all …]
|
H A D | zend_execute.h | 108 zend_type *type, zval *arg, zend_reference *ref, void **cache_slot, bool is_return_type); 445 uint32_t *arg_num_ptr, void **cache_slot);
|
/php-src/ext/standard/ |
H A D | incomplete_class.c | 51 …et_property(zend_object *object, zend_string *member, int type, void **cache_slot, zval *rv) /* {{… in incomplete_class_get_property() argument 64 …_write_property(zend_object *object, zend_string *member, zval *value, void **cache_slot) /* {{{ */ in incomplete_class_write_property() argument 71 …t_property_ptr_ptr(zend_object *object, zend_string *member, int type, void **cache_slot) /* {{{ */ in incomplete_class_get_property_ptr_ptr() argument 78 …omplete_class_unset_property(zend_object *object, zend_string *member, void **cache_slot) /* {{{ */ in incomplete_class_unset_property() argument 84 …as_property(zend_object *object, zend_string *member, int check_empty, void **cache_slot) /* {{{ */ in incomplete_class_has_property() argument
|
/php-src/ext/xsl/ |
H A D | php_xsl.c | 150 …alidation(zend_object *object, zend_string *member, zval *value, void **cache_slot, zval *property) in xsl_objects_write_property_with_validation() argument 169 …sl_objects_write_property(zend_object *object, zend_string *member, zval *value, void **cache_slot) in xsl_objects_write_property() argument 174 return xsl_objects_write_property_with_validation(object, member, value, cache_slot, property); in xsl_objects_write_property() 177 return xsl_objects_write_property_with_validation(object, member, value, cache_slot, property); in xsl_objects_write_property() 179 return zend_std_write_property(object, member, value, cache_slot); in xsl_objects_write_property() 188 …objects_get_property_ptr_ptr(zend_object *object, zend_string *member, int type, void **cache_slot) in xsl_objects_get_property_ptr_ptr() argument 194 return zend_std_get_property_ptr_ptr(object, member, type, cache_slot); in xsl_objects_get_property_ptr_ptr() 197 …ects_read_property(zend_object *object, zend_string *member, int type, void **cache_slot, zval *rv) in xsl_objects_read_property() argument 205 return zend_std_read_property(object, member, type, cache_slot, rv); in xsl_objects_read_property() 208 static void xsl_objects_unset_property(zend_object *object, zend_string *member, void **cache_slot) in xsl_objects_unset_property() argument [all …]
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_cache_slot_opt.phpt | 2 Demonstrate that cache_slot optimization is illegal due to cache_slot merging
|
/php-src/ext/xmlreader/ |
H A D | php_xmlreader.c | 119 retval = zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in xmlreader_get_property_ptr_ptr() 130 if (cache_slot && cache_slot[0] == &xmlreader_prop_handlers) { in xmlreader_get_prop_handler() 131 return cache_slot[1]; in xmlreader_get_prop_handler() 134 if (hnd != NULL && cache_slot) { in xmlreader_get_prop_handler() 135 CACHE_POLYMORPHIC_PTR_EX(cache_slot, &xmlreader_prop_handlers, hnd); in xmlreader_get_prop_handler() 144 xmlreader_prop_handler *hnd = xmlreader_get_prop_handler(name, cache_slot); in xmlreader_has_property() 171 return zend_std_has_property(object, name, type, cache_slot); in xmlreader_has_property() 180 xmlreader_prop_handler *hnd = xmlreader_get_prop_handler(name, cache_slot); in xmlreader_read_property() 189 retval = zend_std_read_property(object, name, type, cache_slot, rv); in xmlreader_read_property() 204 value = zend_std_write_property(object, name, value, cache_slot); in xmlreader_write_property() [all …]
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 66 *cache_slot = fbc; in zend_jit_find_func_helper() 74 *cache_slot = (void *)(uintptr_t)result; in zend_jit_jmp_frameless_helper() 93 *cache_slot = fbc; in zend_jit_find_ns_func_helper() 1859 idx = (uintptr_t)CACHED_PTR_EX(cache_slot) - 1; in zend_jit_fetch_global_helper() 1878 CACHE_PTR_EX(cache_slot, (void*)(idx + 1)); in zend_jit_fetch_global_helper() 1882 CACHE_PTR_EX(cache_slot, (void*)(idx + 1)); in zend_jit_fetch_global_helper() 1908 void **cache_slot = CACHE_ADDR(opline->extended_value); in zend_jit_verify_arg_slow() local 2227 ZEND_ASSERT(cache_slot); in zend_jit_fetch_obj_w_slow() 2254 zend_property_info *prop_info = CACHED_PTR_EX(cache_slot + 2); in zend_jit_fetch_obj_w_slow() 3106 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_pre_inc_obj_helper() [all …]
|
H A D | zend_jit_vm_helpers.c | 851 void **cache_slot = CACHE_ADDR(opline->extended_value & ~ZEND_FETCH_REF); local 852 uintptr_t prop_offset = (uintptr_t)CACHED_PTR_EX(cache_slot + 1); 854 …CACHE_PTR_EX(cache_slot + 1, (void*)((uintptr_t)CACHED_PTR_EX(cache_slot + 1) & ~ZEND_PROPERTY_HOO…
|
/php-src/ext/mysqli/ |
H A D | mysqli.c | 241 zval *mysqli_read_property(zend_object *object, zend_string *name, int type, void **cache_slot, zva… in mysqli_read_property() argument 255 return zend_std_read_property(object, name, type, cache_slot, rv); in mysqli_read_property() 260 zval *mysqli_write_property(zend_object *object, zend_string *name, zval *value, void **cache_slot) in mysqli_write_property() argument 289 return zend_std_write_property(object, name, value, cache_slot); in mysqli_write_property() 305 …s_property(zend_object *object, zend_string *name, int has_set_exists, void **cache_slot) /* {{{ */ in mysqli_object_has_property() argument 318 zval *value = mysqli_read_property(object, name, BP_VAR_IS, cache_slot, &rv); in mysqli_object_has_property() 327 zval *value = mysqli_read_property(object, name, BP_VAR_IS, cache_slot, &rv); in mysqli_object_has_property() 337 has_property = zend_std_has_property(object, name, has_set_exists, cache_slot); in mysqli_object_has_property()
|
/php-src/ext/dom/ |
H A D | php_dom.c | 368 if (cache_slot && *cache_slot == obj->prop_handler) { in dom_get_prop_handler() 369 hnd = *(cache_slot + 1); in dom_get_prop_handler() 373 if (cache_slot) { in dom_get_prop_handler() 374 *cache_slot = obj->prop_handler; in dom_get_prop_handler() 375 *(cache_slot + 1) = (void *) hnd; in dom_get_prop_handler() 417 if (cache_slot) { in dom_write_property() 418 ZEND_ASSERT(*cache_slot == obj->prop_handler); in dom_write_property() 419 prop = *(cache_slot + 2); in dom_write_property() 423 if (cache_slot) { in dom_write_property() 424 *(cache_slot + 2) = prop; in dom_write_property() [all …]
|
/php-src/ext/com_dotnet/ |
H A D | com_handlers.c | 28 …*com_property_read(zend_object *object, zend_string *member, int type, void **cache_slot, zval *rv) in com_property_read() argument 60 … zval *com_property_write(zend_object *object, zend_string *member, zval *value, void **cache_slot) in com_property_write() argument 180 …al *com_get_property_ptr_ptr(zend_object *object, zend_string *member, int type, void **cache_slot) in com_get_property_ptr_ptr() argument 185 …t com_property_exists(zend_object *object, zend_string *member, int check_empty, void **cache_slot) in com_property_exists() argument 211 static void com_property_delete(zend_object *object, zend_string *member, void **cache_slot) in com_property_delete() argument
|
H A D | com_saproxy.c | 77 …roxy_property_read(zend_object *object, zend_string *member, int type, void **cache_slot, zval *rv) in saproxy_property_read() argument 86 …l *saproxy_property_write(zend_object *object, zend_string *member, zval *value, void **cache_slot) in saproxy_property_write() argument 291 …proxy_property_exists(zend_object *object, zend_string *member, int check_empty, void **cache_slot) in saproxy_property_exists() argument 304 static void saproxy_property_delete(zend_object *object, zend_string *member, void **cache_slot) in saproxy_property_delete() argument
|
/php-src/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 285 early_binding->cache_slot = (uint32_t) -1; in zend_accel_build_delayed_early_binding_list() 313 early_binding->cache_slot = opline->extended_value; in zend_accel_finalize_delayed_early_binding_list() 365 if (ce && early_binding->cache_slot != (uint32_t) -1) { in zend_accel_do_delayed_early_binding() 366 *(void**)((char*)run_time_cache + early_binding->cache_slot) = ce; in zend_accel_do_delayed_early_binding()
|
H A D | ZendAccelerator.h | 116 uint32_t cache_slot; member
|
/php-src/ext/spl/ |
H A D | spl_array.c | 806 …read_property(zend_object *object, zend_string *name, int type, void **cache_slot, zval *rv) /* {{… in spl_array_read_property() argument 816 return zend_std_read_property(object, name, type, cache_slot, rv); in spl_array_read_property() 819 …ay_write_property(zend_object *object, zend_string *name, zval *value, void **cache_slot) /* {{{ */ in spl_array_write_property() argument 830 return zend_std_write_property(object, name, value, cache_slot); in spl_array_write_property() 833 …get_property_ptr_ptr(zend_object *object, zend_string *name, int type, void **cache_slot) /* {{{ */ in spl_array_get_property_ptr_ptr() argument 848 return zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in spl_array_get_property_ptr_ptr() 851 …s_property(zend_object *object, zend_string *name, int has_set_exists, void **cache_slot) /* {{{ */ in spl_array_has_property() argument 861 return zend_std_has_property(object, name, has_set_exists, cache_slot); in spl_array_has_property() 864 static void spl_array_unset_property(zend_object *object, zend_string *name, void **cache_slot) /* … in spl_array_unset_property() argument 875 zend_std_unset_property(object, name, cache_slot); in spl_array_unset_property()
|
/php-src/ext/snmp/ |
H A D | snmp.c | 1726 zval *php_snmp_read_property(zend_object *object, zend_string *name, int type, void **cache_slot, z… in php_snmp_read_property() argument 1744 retval = zend_std_read_property(object, name, type, cache_slot, rv); in php_snmp_read_property() 1752 …al *php_snmp_write_property(zend_object *object, zend_string *name, zval *value, void **cache_slot) in php_snmp_write_property() argument 1780 return zend_std_write_property(object, name, value, cache_slot); in php_snmp_write_property() 1786 …hp_snmp_has_property(zend_object *object, zend_string *name, int has_set_exists, void **cache_slot) in php_snmp_has_property() argument 1798 zval *value = php_snmp_read_property(object, name, BP_VAR_IS, cache_slot, &rv); in php_snmp_has_property() 1806 zval *value = php_snmp_read_property(object, name, BP_VAR_IS, cache_slot, &rv); in php_snmp_has_property() 1815 ret = zend_std_has_property(object, name, has_set_exists, cache_slot); in php_snmp_has_property() 1853 …*php_snmp_get_property_ptr_ptr(zend_object *object, zend_string *name, int type, void **cache_slot) in php_snmp_get_property_ptr_ptr() argument 1857 return zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in php_snmp_get_property_ptr_ptr()
|
/php-src/ext/date/ |
H A D | php_date.c | 1715 retval = zend_std_has_property(object, name, type, cache_slot); in date_interval_has_property() 1730 retval = zend_std_has_property(object, name, type, cache_slot); in date_interval_has_property() 4484 retval = zend_std_read_property(object, name, type, cache_slot, rv); in date_interval_read_property() 4507 retval = zend_std_read_property(object, name, type, cache_slot, rv); in date_interval_read_property() 4534 return zend_std_write_property(object, name, value, cache_slot); in date_interval_write_property() 4556 value = zend_std_write_property(object, name, value, cache_slot); in date_interval_write_property() 4581 ret = zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in date_interval_get_property_ptr_ptr() 5959 return zend_std_has_property(object, name, type, cache_slot); in date_period_has_property() 6031 return zend_std_read_property(object, name, type, cache_slot, rv); in date_period_read_property() 6042 return zend_std_write_property(object, name, value, cache_slot); in date_period_write_property() [all …]
|
/php-src/ext/pdo/ |
H A D | pdo_stmt.c | 2010 …tic zval *dbstmt_prop_write(zend_object *object, zend_string *name, zval *value, void **cache_slot) in dbstmt_prop_write() argument 2019 return zend_std_write_property(object, name, value, cache_slot); in dbstmt_prop_write() 2022 static void dbstmt_prop_delete(zend_object *object, zend_string *name, void **cache_slot) in dbstmt_prop_delete() argument 2027 zend_std_unset_property(object, name, cache_slot); in dbstmt_prop_delete() 2285 static zval *row_prop_read(zend_object *object, zend_string *name, int type, void **cache_slot, zva… in row_prop_read() argument 2295 return zend_std_read_property(&stmt->std, name, type, cache_slot, rv); in row_prop_read() 2344 static zval *row_prop_write(zend_object *object, zend_string *name, zval *value, void **cache_slot) in row_prop_write() argument 2360 …tic int row_prop_exists(zend_object *object, zend_string *name, int check_empty, void **cache_slot) in row_prop_exists() argument 2419 static void row_prop_delete(zend_object *object, zend_string *offset, void **cache_slot) in row_prop_delete() argument 2461 … *pdo_row_get_property_ptr_ptr(zend_object *object, zend_string *name, int type, void **cache_slot) in pdo_row_get_property_ptr_ptr() argument [all …]
|
/php-src/ext/bcmath/ |
H A D | bcmath.c | 937 … *bcmath_number_write_property(zend_object *obj, zend_string *name, zval *value, void **cache_slot) in bcmath_number_write_property() argument 944 return zend_std_write_property(obj, name, value, cache_slot); in bcmath_number_write_property() 947 static void bcmath_number_unset_property(zend_object *obj, zend_string *name, void **cache_slot) in bcmath_number_unset_property() argument 954 zend_std_unset_property(obj, name, cache_slot); in bcmath_number_unset_property() 957 …th_number_read_property(zend_object *obj, zend_string *name, int type, void **cache_slot, zval *rv) in bcmath_number_read_property() argument 971 return zend_std_read_property(obj, name, type, cache_slot, rv); in bcmath_number_read_property() 974 …bcmath_number_has_property(zend_object *obj, zend_string *name, int check_empty, void **cache_slot) in bcmath_number_has_property() argument
|
/php-src/ext/zip/ |
H A D | php_zip.c | 886 …get_property_ptr_ptr(zend_object *object, zend_string *name, int type, void **cache_slot) /* {{{ */ in php_zip_get_property_ptr_ptr() argument 899 retval = zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in php_zip_get_property_ptr_ptr() 907 …val *php_zip_write_property(zend_object *object, zend_string *name, zval *value, void **cache_slot) in php_zip_write_property() argument 923 return zend_std_write_property(object, name, value, cache_slot); in php_zip_write_property() 926 …read_property(zend_object *object, zend_string *name, int type, void **cache_slot, zval *rv) /* {{… in php_zip_read_property() argument 944 retval = zend_std_read_property(object, name, type, cache_slot, rv); in php_zip_read_property() 952 static int php_zip_has_property(zend_object *object, zend_string *name, int type, void **cache_slot… in php_zip_has_property() argument 979 retval = zend_std_has_property(object, name, type, cache_slot); in php_zip_has_property()
|
/php-src/ext/ffi/ |
H A D | ffi.c | 1125 …zend_ffi_cdata_set(zend_object *obj, zend_string *member, zval *value, void **cache_slot) /* {{{ */ in zend_ffi_cdata_set() argument 1232 if (cache_slot && *cache_slot == type) { in zend_ffi_cdata_read_field() 1233 field = *(cache_slot + 1); in zend_ffi_cdata_read_field() 1251 if (cache_slot) { in zend_ffi_cdata_read_field() 1252 *cache_slot = type; in zend_ffi_cdata_read_field() 1253 *(cache_slot + 1) = field; in zend_ffi_cdata_read_field() 1305 if (cache_slot && *cache_slot == type) { in zend_ffi_cdata_write_field() 1306 field = *(cache_slot + 1); in zend_ffi_cdata_write_field() 1328 if (cache_slot) { in zend_ffi_cdata_write_field() 1329 *cache_slot = type; in zend_ffi_cdata_write_field() [all …]
|