Lines Matching refs:children

41 static inline size_t zend_ast_list_size(uint32_t children) {  in zend_ast_list_size()  argument
42 return sizeof(zend_ast_list) - sizeof(zend_ast *) + sizeof(zend_ast *) * children; in zend_ast_list_size()
283 list->children = 0; in zend_ast_create_list_0()
297 list->children = 1; in zend_ast_create_list_1()
321 list->children = 2; in zend_ast_create_list_2()
335 list->children = 0; in zend_ast_create_list_2()
344 uint32_t i, children = kind >> ZEND_AST_NUM_CHILDREN_SHIFT; in zend_ast_create_from_va_list() local
347 ast = zend_ast_alloc(zend_ast_size(children)); in zend_ast_create_from_va_list()
352 for (i = 0; i < children; ++i) { in zend_ast_create_from_va_list()
400 list->children = 0; in zend_ast_create_list()
442 if (list->children >= 4 && is_power_of_two(list->children)) { in zend_ast_list_add()
444 zend_ast_list_size(list->children), zend_ast_list_size(list->children * 2)); in zend_ast_list_add()
446 list->child[list->children++] = op; in zend_ast_list_add()
689 if (!list->children) { in zend_ast_evaluate_ex()
694 for (i = 0; i < list->children; i++) { in zend_ast_evaluate_ex()
839 HashTable *args = zend_new_array(args_ast->children); in zend_ast_evaluate_ex()
840 for (uint32_t i = 0; i < args_ast->children; i++) { in zend_ast_evaluate_ex()
876 zval *args = do_alloca(sizeof(zval) * args_ast->children, use_heap); in zend_ast_evaluate_ex()
877 for (uint32_t i = 0; i < args_ast->children; i++) { in zend_ast_evaluate_ex()
891 ctor, Z_OBJ_P(result), NULL, args_ast->children, args); in zend_ast_evaluate_ex()
894 for (uint32_t i = 0; i < args_ast->children; i++) { in zend_ast_evaluate_ex()
992 size = zend_ast_list_size(list->children); in zend_ast_tree_size()
993 for (i = 0; i < list->children; i++) { in zend_ast_tree_size()
999 uint32_t i, children = zend_ast_get_num_children(ast); in zend_ast_tree_size() local
1001 size = zend_ast_size(children); in zend_ast_tree_size()
1002 for (i = 0; i < children; i++) { in zend_ast_tree_size()
1031 new->children = list->children; in zend_ast_tree_copy()
1032 buf = (void*)((char*)buf + zend_ast_list_size(list->children)); in zend_ast_tree_copy()
1033 for (i = 0; i < list->children; i++) { in zend_ast_tree_copy()
1042 uint32_t i, children = zend_ast_get_num_children(ast); in zend_ast_tree_copy() local
1047 buf = (void*)((char*)buf + zend_ast_size(children)); in zend_ast_tree_copy()
1048 for (i = 0; i < children; i++) { in zend_ast_tree_copy()
1082 uint32_t i, children = zend_ast_get_num_children(ast); in zend_ast_destroy() local
1084 for (i = 1; i < children; i++) { in zend_ast_destroy()
1093 if (list->children) { in zend_ast_destroy()
1096 for (i = 1; i < list->children; i++) { in zend_ast_destroy()
1132 for (i = 0; i < list->children; ++i) { in zend_ast_apply()
1136 uint32_t i, children = zend_ast_get_num_children(ast); in zend_ast_apply() local
1137 for (i = 0; i < children; ++i) { in zend_ast_apply()
1346 while (i < list->children) { in zend_ast_export_list()
1360 while (i < list->children) { in zend_ast_export_encaps_list()
1369 (i + 1 == list->children || in zend_ast_export_encaps_list()
1388 while (i < list->children) { in zend_ast_export_name_list_ex()
1404 while (i < list->children) { in zend_ast_export_var_list()
1428 while (i < list->children) { in zend_ast_export_stmt()
1466 while (i < list->children) { in zend_ast_export_if_stmt()
1570 for (uint32_t i = 0; i < list->children; i++) { in zend_ast_export_attribute_group()
1590 for (i = 0; i < list->children; i++) { in zend_ast_export_attributes()
1617 for (uint32_t i = 0; i < list->children; i++) { in zend_ast_export_type()
1627 for (uint32_t i = 0; i < list->children; i++) { in zend_ast_export_type()
2145 || zend_ast_get_list(ast->child[1])->children) { in zend_ast_export_ex()