Lines Matching refs:CG
70 ? zend_arena_alloc(&CG(arena), size) : pemalloc(size, persistent); in zend_type_list_copy_ctor()
100 new_function = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_duplicate_internal_function()
226 return !(CG(compiler_options) & ZEND_COMPILE_IGNORE_INTERNAL_CLASSES); in class_visible()
229 return !(CG(compiler_options) & ZEND_COMPILE_IGNORE_OTHER_FILES) in class_visible()
230 || ce->info.user.filename == CG(compiled_filename); in class_visible()
236 if (!CG(delayed_autoloads)) { in register_unresolved_class()
237 ALLOC_HASHTABLE(CG(delayed_autoloads)); in register_unresolved_class()
238 zend_hash_init(CG(delayed_autoloads), 0, NULL, NULL, 0); in register_unresolved_class()
240 zend_hash_add_empty_element(CG(delayed_autoloads), name); in register_unresolved_class()
246 bool in_preload = CG(compiler_options) & ZEND_COMPILE_PRELOAD; in lookup_class_ex()
251 ce = zend_hash_find_ptr(CG(class_table), lc_name); in lookup_class_ex()
267 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()
387 ht = (HashTable*)CG(current_linking_class)->inheritance_cache; in track_class_dependency()
394 CG(current_linking_class)->inheritance_cache = NULL; in track_class_dependency()
396 CG(current_linking_class)->ce_flags &= ~ZEND_ACC_CACHEABLE; in track_class_dependency()
397 CG(current_linking_class) = NULL; in track_class_dependency()
405 CG(current_linking_class)->inheritance_cache = (zend_inheritance_cache_entry*)ht; in track_class_dependency()
1027 ZEND_HASH_MAP_FOREACH_STR_KEY(CG(delayed_autoloads), unresolved_class) { in emit_incompatible_method_error()
1099 zend_function *new_function = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); \ in do_inheritance_check_on_method()
1398 c = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in do_inherit_class_constant()
1425 ce->properties_info_table = table = zend_arena_alloc(&CG(arena), size); in zend_build_properties_info_table()
1714 ct = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in do_inherit_iface_constant()
1917 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_add_trait_method()
1921 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_add_trait_method()
2305 ct = zend_arena_alloc(&CG(arena),sizeof(zend_class_constant)); in zend_do_traits_constant_binding()
2568 if (!CG(delayed_variance_obligations)) { in get_or_init_obligations_for_class()
2569 ALLOC_HASHTABLE(CG(delayed_variance_obligations)); in get_or_init_obligations_for_class()
2570 zend_hash_init(CG(delayed_variance_obligations), 0, NULL, variance_obligation_ht_dtor, 0); in get_or_init_obligations_for_class()
2574 ht = zend_hash_index_find_ptr(CG(delayed_variance_obligations), key); in get_or_init_obligations_for_class()
2581 zend_hash_index_add_new_ptr(CG(delayed_variance_obligations), key, ht); in get_or_init_obligations_for_class()
2634 zend_class_entry *orig_linking_class = CG(current_linking_class); in check_variance_obligation()
2636 CG(current_linking_class) = in check_variance_obligation()
2639 CG(current_linking_class) = orig_linking_class; in check_variance_obligation()
2662 HashTable *delayed_autoloads = CG(delayed_autoloads); in load_delayed_classes()
2690 HashTable *all_obligations = CG(delayed_variance_obligations), *obligations; in resolve_delayed_variance_obligations()
2712 if (CG(unlinked_uses) in check_unrecoverable_load_failure()
2713 && zend_hash_index_del(CG(unlinked_uses), (zend_long)(zend_uintptr_t)ce) == SUCCESS) { in check_unrecoverable_load_failure()
2730 ce = zend_arena_alloc(&CG(arena), sizeof(zend_class_entry)); in zend_lazy_class_load()
2735 if (CG(compiler_options) & ZEND_COMPILE_PRELOAD) { in zend_lazy_class_load()
2768 new_op_array = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_lazy_class_load()
2817 new_prop_info= zend_arena_alloc(&CG(arena), sizeof(zend_property_info)); in zend_lazy_class_load()
2838 new_c = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant)); in zend_lazy_class_load()
2952 zv = zend_hash_find_known_hash(CG(class_table), key); in zend_do_link_class()
2970 zv = zend_hash_find_known_hash(CG(class_table), key); in zend_do_link_class()
2976 zv = zend_hash_find_known_hash(CG(class_table), key); in zend_do_link_class()
2980 if (CG(unlinked_uses)) { in zend_do_link_class()
2981 zend_hash_index_del(CG(unlinked_uses), (zend_long)(zend_uintptr_t) ce); in zend_do_link_class()
2984 orig_linking_class = CG(current_linking_class); in zend_do_link_class()
2985 CG(current_linking_class) = is_cacheable ? ce : NULL; in zend_do_link_class()
3057 if (CG(current_linking_class)) { in zend_do_link_class()
3067 CG(current_linking_class) = NULL; in zend_do_link_class()
3071 if (!CG(current_linking_class)) { in zend_do_link_class()
3074 CG(current_linking_class) = orig_linking_class; in zend_do_link_class()
3083 zv = zend_hash_find_known_hash(CG(class_table), key); in zend_do_link_class()
3173 if (zend_hash_add_ptr(CG(class_table), lcname, ce) != NULL) { in register_early_bound_ce()
3203 orig_linking_class = CG(current_linking_class); in zend_try_early_bind()
3204 CG(current_linking_class) = NULL; in zend_try_early_bind()
3206 CG(current_linking_class) = orig_linking_class; in zend_try_early_bind()
3221 orig_linking_class = CG(current_linking_class); in zend_try_early_bind()
3222 CG(current_linking_class) = is_cacheable ? ce : NULL; in zend_try_early_bind()
3225 CG(zend_lineno) = ce->info.user.line_start; in zend_try_early_bind()
3242 CG(current_linking_class) = orig_linking_class; in zend_try_early_bind()
3258 zval *zv = zend_hash_find_known_hash(CG(class_table), lcname); in zend_try_early_bind()