/PHP-8.3/Zend/ |
H A D | zend_extensions.c | 320 if (!ZEND_USER_CODE(zif->type) && ZEND_MAP_PTR_GET(zif->run_time_cache) == NULL) in zend_init_internal_run_time_cache() 322 ZEND_MAP_PTR_SET(zif->run_time_cache, (void *)ptr); in zend_init_internal_run_time_cache() 328 if (!ZEND_USER_CODE(zif->type) && ZEND_MAP_PTR_GET(zif->run_time_cache) == NULL) in zend_init_internal_run_time_cache() 330 ZEND_MAP_PTR_SET(zif->run_time_cache, (void *)ptr); in zend_init_internal_run_time_cache()
|
H A D | zend_execute.h | 427 ((void**)((char*)EX(run_time_cache) + (num))) 430 ((void**)((char*)EX(run_time_cache) + (num)))[0] 433 ((void**)((char*)EX(run_time_cache) + (num)))[0] = (ptr); \ 437 (EXPECTED(((void**)((char*)EX(run_time_cache) + (num)))[0] == (void*)(ce)) ? \ 438 ((void**)((char*)EX(run_time_cache) + (num)))[1] : \ 442 void **slot = (void**)((char*)EX(run_time_cache) + (num)); \
|
H A D | zend_compile.h | 455 ZEND_MAP_PTR_DEF(void **, run_time_cache); 510 ZEND_MAP_PTR_DEF(void **, run_time_cache); 536 ZEND_MAP_PTR_DEF(void **, run_time_cache); 552 void **run_time_cache; /* cache op_array->run_time_cache */ member 752 ZEND_MAP_PTR_GET((op_array)->run_time_cache)
|
H A D | zend_closures.c | 198 ZEND_MAP_PTR_INIT(my_function->op_array.run_time_cache, ptr); in ZEND_METHOD() 206 efree(ZEND_MAP_PTR(my_function->op_array.run_time_cache)); in ZEND_METHOD() 764 ptr = ZEND_MAP_PTR_GET(func->op_array.run_time_cache); in zend_create_closure_ex() 779 ZEND_MAP_PTR_SET(func->op_array.run_time_cache, ptr); in zend_create_closure_ex() 788 ZEND_MAP_PTR_INIT(closure->func.op_array.run_time_cache, ptr); in zend_create_closure_ex()
|
H A D | zend_enum.c | 422 …ZEND_MAP_PTR_INIT(zif->run_time_cache, zend_arena_calloc(&CG(arena), 1, zend_internal_run_time_cac… in zend_enum_register_func() 424 ZEND_MAP_PTR_NEW(zif->run_time_cache); in zend_enum_register_func()
|
H A D | zend_opcode.c | 93 ZEND_MAP_PTR_INIT(op_array->run_time_cache, NULL); in init_op_array() 543 && ZEND_MAP_PTR(op_array->run_time_cache)) { in destroy_op_array() 544 efree(ZEND_MAP_PTR(op_array->run_time_cache)); in destroy_op_array()
|
H A D | zend_observer.c | 32 …(ZEND_MAP_PTR(function->common.run_time_cache) && !(function->common.fn_flags & ZEND_ACC_CALL_VIA_…
|
H A D | zend_execute.c | 4028 EX(run_time_cache) = RUN_TIME_CACHE(op_array); in i_init_func_execute_data() 4036 void **run_time_cache; in init_func_run_time_cache_i() local 4039 run_time_cache = zend_arena_alloc(&CG(arena), op_array->cache_size); in init_func_run_time_cache_i() 4040 memset(run_time_cache, 0, op_array->cache_size); in init_func_run_time_cache_i() 4041 ZEND_MAP_PTR_SET(op_array->run_time_cache, run_time_cache); in init_func_run_time_cache_i() 4100 if (!ZEND_MAP_PTR(op_array->run_time_cache)) { in i_init_code_execute_data() 4105 ZEND_MAP_PTR_INIT(op_array->run_time_cache, ptr); in i_init_code_execute_data() 4108 EX(run_time_cache) = RUN_TIME_CACHE(op_array); in i_init_code_execute_data() 5193 void *run_time_cache = RUN_TIME_CACHE(op_array); in zend_handle_undef_args() local 5195 (zval *) ((char *) run_time_cache + Z_CACHE_SLOT_P(default_value)); in zend_handle_undef_args()
|
H A D | zend_object_handlers.c | 1352 ZEND_MAP_PTR_INIT(func->run_time_cache, (void**)dummy); in zend_get_call_trampoline_func()
|
H A D | zend_API.c | 2831 …ZEND_MAP_PTR_INIT(internal_function->run_time_cache, zend_arena_calloc(&CG(arena), 1, zend_interna… in zend_register_functions() 2833 ZEND_MAP_PTR_NEW(internal_function->run_time_cache); in zend_register_functions()
|
H A D | zend_inheritance.c | 2931 ZEND_MAP_PTR_INIT(new_op_array->run_time_cache, NULL); in zend_lazy_class_load()
|
H A D | zend_compile.c | 1182 ZEND_MAP_PTR_INIT(op_array->run_time_cache, NULL); in function_add_ref()
|
/PHP-8.3/Zend/tests/ |
H A D | gh10346.phpt | 2 GH-10346 (Observer: enum tryFrom() run_time_cache properly assigned)
|
/PHP-8.3/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 342 ZEND_ASSERT(!ZEND_MAP_PTR(op_array->run_time_cache)); in zend_accel_do_delayed_early_binding() 344 void *run_time_cache = emalloc(op_array->cache_size); in zend_accel_do_delayed_early_binding() local 346 ZEND_MAP_PTR_INIT(op_array->run_time_cache, run_time_cache); in zend_accel_do_delayed_early_binding() 347 memset(run_time_cache, 0, op_array->cache_size); in zend_accel_do_delayed_early_binding() 368 *(void**)((char*)run_time_cache + early_binding->cache_slot) = ce; in zend_accel_do_delayed_early_binding()
|
H A D | zend_persist.c | 691 ZEND_MAP_PTR_NEW(op_array->run_time_cache); in zend_persist_op_array() 738 ZEND_MAP_PTR_NEW(op_array->run_time_cache); in zend_persist_class_method() 773 ZEND_MAP_PTR_NEW(op_array->run_time_cache); in zend_persist_class_method() 778 ZEND_MAP_PTR_INIT(op_array->run_time_cache, NULL); in zend_persist_class_method() 1370 ZEND_MAP_PTR_INIT(script->script.main_op_array.run_time_cache, NULL); in zend_accel_script_persist()
|
H A D | zend_file_cache.c | 464 ZEND_MAP_PTR_INIT(op_array->run_time_cache, NULL); 1313 ZEND_MAP_PTR_NEW(op_array->run_time_cache); 1316 ZEND_MAP_PTR_INIT(op_array->run_time_cache, NULL); 1324 ZEND_MAP_PTR_INIT(op_array->run_time_cache, NULL);
|
/PHP-8.3/ext/pdo/ |
H A D | pdo_dbh.c | 1222 if (ZEND_MAP_PTR(func->common.run_time_cache)) { in cls_method_dtor() 1223 efree(ZEND_MAP_PTR(func->common.run_time_cache)); in cls_method_dtor() 1234 if (ZEND_MAP_PTR(func->common.run_time_cache)) { in cls_method_pdtor() 1235 pefree(ZEND_MAP_PTR(func->common.run_time_cache), 1); in cls_method_pdtor() 1271 …ZEND_MAP_PTR(func.run_time_cache) = rt_cache_size ? pecalloc(rt_cache_size, 1, dbh->is_persistent)… in pdo_hash_methods()
|
/PHP-8.3/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 32 void **run_time_cache; in _zend_jit_init_func_run_time_cache() local 34 run_time_cache = zend_arena_alloc(&CG(arena), op_array->cache_size); in _zend_jit_init_func_run_time_cache() 35 memset(run_time_cache, 0, op_array->cache_size); in _zend_jit_init_func_run_time_cache() 36 ZEND_MAP_PTR_SET(op_array->run_time_cache, run_time_cache); in _zend_jit_init_func_run_time_cache() 43 void **run_time_cache; in zend_jit_init_func_run_time_cache_helper() local 46 run_time_cache = zend_arena_alloc(&CG(arena), op_array->cache_size); in zend_jit_init_func_run_time_cache_helper() 47 memset(run_time_cache, 0, op_array->cache_size); in zend_jit_init_func_run_time_cache_helper() 48 ZEND_MAP_PTR_SET(op_array->run_time_cache, run_time_cache); in zend_jit_init_func_run_time_cache_helper()
|
H A D | zend_jit_x86.dasc | 2181 | // run_time_cache = EX(run_time_cache); 2182 | mov r2, EX->run_time_cache 9382 | mov r2, EX->run_time_cache 9603 | mov r0, EX->run_time_cache 9609 | mov r0, EX->run_time_cache 10983 | mov r0, EX->run_time_cache 12992 | mov r0, EX->run_time_cache 13015 | mov r0, EX->run_time_cache 13523 | mov r0, EX->run_time_cache 13996 | mov r0, EX->run_time_cache [all …]
|
H A D | zend_jit_arm64.dasc | 2180 | // run_time_cache = EX(run_time_cache); 2181 | ldr REG2, EX->run_time_cache 8738 | ldr REG2, EX->run_time_cache 8935 | ldr REG0, EX->run_time_cache 8940 | ldr REG0, EX->run_time_cache 10278 | ldr REG0, EX->run_time_cache 12223 | ldr REG0, EX->run_time_cache 12743 | ldr REG0, EX->run_time_cache 13177 | ldr REG0, EX->run_time_cache 13555 | ldr REG0, EX->run_time_cache [all …]
|
H A D | zend_jit_vm_helpers.c | 244 ++*(uintptr_t*)(EX(run_time_cache) + zend_jit_profile_counter_rid); in zend_jit_profile_helper()
|