/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 | 23493 void **cache_slot; in ZEND_ASSIGN_OBJ_OP_SPEC_VAR_CONST_HANDLER() local 23715 void **cache_slot; in ZEND_PRE_INC_OBJ_SPEC_VAR_CONST_HANDLER() local 23779 void **cache_slot; in ZEND_POST_INC_OBJ_SPEC_VAR_CONST_HANDLER() local 26479 void **cache_slot; in ZEND_ASSIGN_OBJ_OP_SPEC_VAR_TMPVAR_HANDLER() local 26703 void **cache_slot; in ZEND_PRE_INC_OBJ_SPEC_VAR_TMPVAR_HANDLER() local 26768 void **cache_slot; in ZEND_POST_INC_OBJ_SPEC_VAR_TMPVAR_HANDLER() local 30837 void **cache_slot; in ZEND_ASSIGN_OBJ_OP_SPEC_VAR_CV_HANDLER() local 31059 void **cache_slot; in ZEND_PRE_INC_OBJ_SPEC_VAR_CV_HANDLER() local 31123 void **cache_slot; in ZEND_POST_INC_OBJ_SPEC_VAR_CV_HANDLER() local 33506 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 4403 void *cache_slot = CACHE_ADDR(opline->op2.num); variable 5221 void *cache_slot[2] = {NULL, NULL}; in ZEND_HASH_FOREACH_STR_KEY_VAL() local 5223 EX(call)->func, name, cache_slot) + 1; in ZEND_HASH_FOREACH_STR_KEY_VAL() 5239 void *cache_slot[2] = {NULL, NULL}; in ZEND_HASH_FOREACH_STR_KEY_VAL() local 5335 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/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/xmlreader/ |
H A D | php_xmlreader.c | 113 …xmlreader_get_property_ptr_ptr(zend_object *object, zend_string *name, int type, void **cache_slot) in xmlreader_get_property_ptr_ptr() argument 119 retval = zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in xmlreader_get_property_ptr_ptr() 126 …tic int xmlreader_has_property(zend_object *object, zend_string *name, int type, void **cache_slot) in xmlreader_has_property() argument 156 return zend_std_has_property(object, name, type, cache_slot); in xmlreader_has_property() 161 …reader_read_property(zend_object *object, zend_string *name, int type, void **cache_slot, zval *rv) in xmlreader_read_property() argument 174 retval = zend_std_read_property(object, name, type, cache_slot, rv); in xmlreader_read_property() 182 …l *xmlreader_write_property(zend_object *object, zend_string *name, zval *value, void **cache_slot) in xmlreader_write_property() argument 189 value = zend_std_write_property(object, name, value, cache_slot); in xmlreader_write_property() 196 void xmlreader_unset_property(zend_object *object, zend_string *name, void **cache_slot) in xmlreader_unset_property() argument 205 zend_std_unset_property(object, name, cache_slot); in xmlreader_unset_property()
|
/php-src/ext/dom/ |
H A D | php_dom.c | 373 if (cache_slot && *cache_slot == obj->prop_handler) { in dom_get_prop_handler() 374 hnd = *(cache_slot + 1); in dom_get_prop_handler() 378 if (cache_slot) { in dom_get_prop_handler() 379 *cache_slot = obj->prop_handler; in dom_get_prop_handler() 380 *(cache_slot + 1) = (void *) hnd; in dom_get_prop_handler() 422 if (cache_slot) { in dom_write_property() 423 ZEND_ASSERT(*cache_slot == obj->prop_handler); in dom_write_property() 424 prop = *(cache_slot + 2); in dom_write_property() 428 if (cache_slot) { in dom_write_property() 429 *(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/snmp/ |
H A D | snmp.c | 1686 zval *php_snmp_read_property(zend_object *object, zend_string *name, int type, void **cache_slot, z… in php_snmp_read_property() argument 1704 retval = zend_std_read_property(object, name, type, cache_slot, rv); in php_snmp_read_property() 1712 …al *php_snmp_write_property(zend_object *object, zend_string *name, zval *value, void **cache_slot) in php_snmp_write_property() argument 1740 return zend_std_write_property(object, name, value, cache_slot); in php_snmp_write_property() 1746 …hp_snmp_has_property(zend_object *object, zend_string *name, int has_set_exists, void **cache_slot) in php_snmp_has_property() argument 1758 zval *value = php_snmp_read_property(object, name, BP_VAR_IS, cache_slot, &rv); in php_snmp_has_property() 1766 zval *value = php_snmp_read_property(object, name, BP_VAR_IS, cache_slot, &rv); in php_snmp_has_property() 1775 ret = zend_std_has_property(object, name, has_set_exists, cache_slot); in php_snmp_has_property() 1813 …*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 1817 return zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in php_snmp_get_property_ptr_ptr()
|
/php-src/ext/spl/ |
H A D | spl_array.c | 804 …read_property(zend_object *object, zend_string *name, int type, void **cache_slot, zval *rv) /* {{… in spl_array_read_property() argument 814 return zend_std_read_property(object, name, type, cache_slot, rv); in spl_array_read_property() 817 …ay_write_property(zend_object *object, zend_string *name, zval *value, void **cache_slot) /* {{{ */ in spl_array_write_property() argument 828 return zend_std_write_property(object, name, value, cache_slot); in spl_array_write_property() 831 …get_property_ptr_ptr(zend_object *object, zend_string *name, int type, void **cache_slot) /* {{{ */ in spl_array_get_property_ptr_ptr() argument 846 return zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in spl_array_get_property_ptr_ptr() 849 …s_property(zend_object *object, zend_string *name, int has_set_exists, void **cache_slot) /* {{{ */ in spl_array_has_property() argument 859 return zend_std_has_property(object, name, has_set_exists, cache_slot); in spl_array_has_property() 862 static void spl_array_unset_property(zend_object *object, zend_string *name, void **cache_slot) /* … in spl_array_unset_property() argument 873 zend_std_unset_property(object, name, cache_slot); in spl_array_unset_property()
|
/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() 4489 retval = zend_std_read_property(object, name, type, cache_slot, rv); in date_interval_read_property() 4512 retval = zend_std_read_property(object, name, type, cache_slot, rv); in date_interval_read_property() 4539 return zend_std_write_property(object, name, value, cache_slot); in date_interval_write_property() 4561 value = zend_std_write_property(object, name, value, cache_slot); in date_interval_write_property() 4586 ret = zend_std_get_property_ptr_ptr(object, name, type, cache_slot); in date_interval_get_property_ptr_ptr() 5940 return zend_std_has_property(object, name, type, cache_slot); in date_period_has_property() 6012 return zend_std_read_property(object, name, type, cache_slot, rv); in date_period_read_property() 6023 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() 2268 static zval *row_prop_read(zend_object *object, zend_string *name, int type, void **cache_slot, zva… in row_prop_read() argument 2278 return zend_std_read_property(&stmt->std, name, type, cache_slot, rv); in row_prop_read() 2327 static zval *row_prop_write(zend_object *object, zend_string *name, zval *value, void **cache_slot) in row_prop_write() argument 2343 …tic int row_prop_exists(zend_object *object, zend_string *name, int check_empty, void **cache_slot) in row_prop_exists() argument 2402 static void row_prop_delete(zend_object *object, zend_string *offset, void **cache_slot) in row_prop_delete() argument 2444 … *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 | 934 … *bcmath_number_write_property(zend_object *obj, zend_string *name, zval *value, void **cache_slot) in bcmath_number_write_property() argument 941 return zend_std_write_property(obj, name, value, cache_slot); in bcmath_number_write_property() 944 static void bcmath_number_unset_property(zend_object *obj, zend_string *name, void **cache_slot) in bcmath_number_unset_property() argument 951 zend_std_unset_property(obj, name, cache_slot); in bcmath_number_unset_property() 954 …th_number_read_property(zend_object *obj, zend_string *name, int type, void **cache_slot, zval *rv) in bcmath_number_read_property() argument 968 return zend_std_read_property(obj, name, type, cache_slot, rv); in bcmath_number_read_property() 971 …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 | 1124 …zend_ffi_cdata_set(zend_object *obj, zend_string *member, zval *value, void **cache_slot) /* {{{ */ in zend_ffi_cdata_set() argument 1231 if (cache_slot && *cache_slot == type) { in zend_ffi_cdata_read_field() 1232 field = *(cache_slot + 1); in zend_ffi_cdata_read_field() 1250 if (cache_slot) { in zend_ffi_cdata_read_field() 1251 *cache_slot = type; in zend_ffi_cdata_read_field() 1252 *(cache_slot + 1) = field; in zend_ffi_cdata_read_field() 1304 if (cache_slot && *cache_slot == type) { in zend_ffi_cdata_write_field() 1305 field = *(cache_slot + 1); in zend_ffi_cdata_write_field() 1327 if (cache_slot) { in zend_ffi_cdata_write_field() 1328 *cache_slot = type; in zend_ffi_cdata_write_field() [all …]
|