Lines Matching refs:CG
64 ? zend_arena_alloc(&CG(arena), size) : pemalloc(size, persistent); in zend_type_copy_ctor()
86 new_function = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_duplicate_internal_function()
212 return !(CG(compiler_options) & ZEND_COMPILE_IGNORE_INTERNAL_CLASSES); in class_visible()
215 return !(CG(compiler_options) & ZEND_COMPILE_IGNORE_OTHER_FILES) in class_visible()
216 || ce->info.user.filename == CG(compiled_filename); in class_visible()
222 if (!CG(delayed_autoloads)) { in register_unresolved_class()
223 ALLOC_HASHTABLE(CG(delayed_autoloads)); in register_unresolved_class()
224 zend_hash_init(CG(delayed_autoloads), 0, NULL, NULL, 0); in register_unresolved_class()
226 zend_hash_add_empty_element(CG(delayed_autoloads), name); in register_unresolved_class()
232 bool in_preload = CG(compiler_options) & ZEND_COMPILE_PRELOAD; in lookup_class_ex()
237 ce = zend_hash_find_ptr(CG(class_table), lc_name); in lookup_class_ex()
253 if (!CG(in_compilation) || in_preload) { in lookup_class_ex()
372 if (!CG(current_linking_class) || ce == CG(current_linking_class)) { in track_class_dependency()
389 ht = (HashTable*)CG(current_linking_class)->inheritance_cache; in track_class_dependency()
396 CG(current_linking_class)->inheritance_cache = NULL; in track_class_dependency()
398 CG(current_linking_class)->ce_flags &= ~ZEND_ACC_CACHEABLE; in track_class_dependency()
399 CG(current_linking_class) = NULL; in track_class_dependency()
407 CG(current_linking_class)->inheritance_cache = (zend_inheritance_cache_entry*)ht; in track_class_dependency()
983 ZEND_HASH_FOREACH_STR_KEY(CG(delayed_autoloads), unresolved_class) { in emit_incompatible_method_error()
1113 zend_function *new_function = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in do_inheritance_check_on_method_ex()
1354 c = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in do_inherit_class_constant()
1381 ce->properties_info_table = table = zend_arena_alloc(&CG(arena), size); in zend_build_properties_info_table()
1532 zend_arena_alloc(&CG(arena), sizeof(zval *))); in zend_do_inheritance_ex()
1637 ct = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in do_inherit_iface_constant()
1833 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_add_trait_method()
1837 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_add_trait_method()
2385 if (!CG(delayed_variance_obligations)) { in get_or_init_obligations_for_class()
2386 ALLOC_HASHTABLE(CG(delayed_variance_obligations)); in get_or_init_obligations_for_class()
2387 zend_hash_init(CG(delayed_variance_obligations), 0, NULL, variance_obligation_ht_dtor, 0); in get_or_init_obligations_for_class()
2391 ht = zend_hash_index_find_ptr(CG(delayed_variance_obligations), key); in get_or_init_obligations_for_class()
2398 zend_hash_index_add_new_ptr(CG(delayed_variance_obligations), key, ht); in get_or_init_obligations_for_class()
2451 zend_class_entry *orig_linking_class = CG(current_linking_class); in check_variance_obligation()
2453 CG(current_linking_class) = in check_variance_obligation()
2456 CG(current_linking_class) = orig_linking_class; in check_variance_obligation()
2479 HashTable *delayed_autoloads = CG(delayed_autoloads); in load_delayed_classes()
2507 HashTable *all_obligations = CG(delayed_variance_obligations), *obligations; in resolve_delayed_variance_obligations()
2529 if (CG(unlinked_uses) in check_unrecoverable_load_failure()
2530 && zend_hash_index_del(CG(unlinked_uses), (zend_long)(zend_uintptr_t)ce) == SUCCESS) { in check_unrecoverable_load_failure()
2547 ce = zend_arena_alloc(&CG(arena), sizeof(zend_class_entry)); in zend_lazy_class_load()
2552 if (CG(compiler_options) & ZEND_COMPILE_PRELOAD) { in zend_lazy_class_load()
2591 new_op_array = zend_arena_alloc(&CG(arena), alloc_size); in zend_lazy_class_load()
2632 ZEND_MAP_PTR_INIT(ce->static_members_table, zend_arena_alloc(&CG(arena), sizeof(zval *))); in zend_lazy_class_load()
2647 new_prop_info= zend_arena_alloc(&CG(arena), sizeof(zend_property_info)); in zend_lazy_class_load()
2655 new_list = zend_arena_alloc(&CG(arena), ZEND_TYPE_LIST_SIZE(list->num_types)); in zend_lazy_class_load()
2675 new_c = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in zend_lazy_class_load()
2789 zv = zend_hash_find_known_hash(CG(class_table), key); in zend_do_link_class()
2807 zv = zend_hash_find_known_hash(CG(class_table), key); in zend_do_link_class()
2813 zv = zend_hash_find_known_hash(CG(class_table), key); in zend_do_link_class()
2817 if (CG(unlinked_uses)) { in zend_do_link_class()
2818 zend_hash_index_del(CG(unlinked_uses), (zend_long)(zend_uintptr_t) ce); in zend_do_link_class()
2821 orig_linking_class = CG(current_linking_class); in zend_do_link_class()
2822 CG(current_linking_class) = is_cacheable ? ce : NULL; in zend_do_link_class()
2894 if (CG(current_linking_class)) { in zend_do_link_class()
2904 CG(current_linking_class) = NULL; in zend_do_link_class()
2908 if (!CG(current_linking_class)) { in zend_do_link_class()
2911 CG(current_linking_class) = orig_linking_class; in zend_do_link_class()
2920 zv = zend_hash_find_known_hash(CG(class_table), key); in zend_do_link_class()
3009 return zend_hash_add_ptr(CG(class_table), lcname, ce) != NULL; in register_early_bound_ce()
3035 orig_linking_class = CG(current_linking_class); in zend_try_early_bind()
3036 CG(current_linking_class) = NULL; in zend_try_early_bind()
3038 CG(current_linking_class) = orig_linking_class; in zend_try_early_bind()
3053 orig_linking_class = CG(current_linking_class); in zend_try_early_bind()
3054 CG(current_linking_class) = is_cacheable ? ce : NULL; in zend_try_early_bind()
3072 CG(current_linking_class) = orig_linking_class; in zend_try_early_bind()
3088 zval *zv = zend_hash_find_known_hash(CG(class_table), lcname); in zend_try_early_bind()