Lines Matching refs:root

206 		leaf->node.ptr.root = NULL;  in clear_link_to_leaf()
215 if (generator->node.ptr.root) { in clear_link_to_root()
216 generator->node.ptr.root->node.ptr.leaf = NULL; in clear_link_to_root()
217 generator->node.ptr.root = NULL; in clear_link_to_root()
461 generator->node.ptr.root = NULL; in zend_generator_create()
551 leaf->node.ptr.root = from; in zend_generator_yield_from()
560 zend_generator *root = generator->node.parent; in zend_generator_update_root() local
561 while (root->node.parent) { in zend_generator_update_root()
562 root = root->node.parent; in zend_generator_update_root()
565 clear_link_to_leaf(root); in zend_generator_update_root()
566 root->node.ptr.leaf = generator; in zend_generator_update_root()
567 generator->node.ptr.root = root; in zend_generator_update_root()
568 return root; in zend_generator_update_root()
571 static zend_generator *get_new_root(zend_generator *generator, zend_generator *root) in get_new_root() argument
573 while (!root->execute_data && root->node.children == 1) { in get_new_root()
574 root = root->node.child.single; in get_new_root()
577 if (root->execute_data) { in get_new_root()
578 return root; in get_new_root()
592 zend_generator *old_root = generator->node.ptr.root; in zend_generator_update_current()
598 generator->node.ptr.root = new_root; in zend_generator_update_current()
927 zend_generator *generator, *root; in ZEND_METHOD() local
935 root = zend_generator_get_current(generator); in ZEND_METHOD()
936 if (EXPECTED(generator->execute_data != NULL && Z_TYPE(root->value) != IS_UNDEF)) { in ZEND_METHOD()
937 RETURN_COPY_DEREF(&root->value); in ZEND_METHOD()
945 zend_generator *generator, *root; in ZEND_METHOD() local
953 root = zend_generator_get_current(generator); in ZEND_METHOD()
954 if (EXPECTED(generator->execute_data != NULL && Z_TYPE(root->key) != IS_UNDEF)) { in ZEND_METHOD()
955 RETURN_COPY_DEREF(&root->key); in ZEND_METHOD()
979 zend_generator *generator, *root; in ZEND_METHOD() local
994 root = zend_generator_get_current(generator); in ZEND_METHOD()
996 if (root->send_target && !(root->flags & ZEND_GENERATOR_CURRENTLY_RUNNING)) { in ZEND_METHOD()
997 ZVAL_COPY(root->send_target, value); in ZEND_METHOD()
1002 root = zend_generator_get_current(generator); in ZEND_METHOD()
1004 RETURN_COPY_DEREF(&root->value); in ZEND_METHOD()
1026 zend_generator *root = zend_generator_get_current(generator); in ZEND_METHOD() local
1028 zend_generator_throw_exception(root, exception); in ZEND_METHOD()
1032 root = zend_generator_get_current(generator); in ZEND_METHOD()
1034 RETURN_COPY_DEREF(&root->value); in ZEND_METHOD()
1091 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data), *root; in zend_generator_iterator_get_data() local
1095 root = zend_generator_get_current(generator); in zend_generator_iterator_get_data()
1097 return &root->value; in zend_generator_iterator_get_data()
1103 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data), *root; in zend_generator_iterator_get_key() local
1107 root = zend_generator_get_current(generator); in zend_generator_iterator_get_key()
1109 if (EXPECTED(Z_TYPE(root->key) != IS_UNDEF)) { in zend_generator_iterator_get_key()
1110 zval *zv = &root->key; in zend_generator_iterator_get_key()