Lines Matching refs:worklist
90 static inline int zend_worklist_prepare(zend_arena **arena, zend_worklist *worklist, int len) in zend_worklist_prepare() argument
93 …worklist->visited = (zend_bitset)zend_arena_calloc(arena, sizeof(zend_ulong), zend_bitset_len(len)… in zend_worklist_prepare()
94 if (!worklist->visited) { in zend_worklist_prepare()
97 return zend_worklist_stack_prepare(arena, &worklist->stack, len); in zend_worklist_prepare()
100 static inline int zend_worklist_len(zend_worklist *worklist) in zend_worklist_len() argument
102 return worklist->stack.len; in zend_worklist_len()
105 static inline int zend_worklist_push(zend_worklist *worklist, int i) in zend_worklist_push() argument
107 ZEND_ASSERT(i >= 0 && i < worklist->stack.capacity); in zend_worklist_push()
109 if (zend_bitset_in(worklist->visited, i)) { in zend_worklist_push()
113 zend_bitset_incl(worklist->visited, i); in zend_worklist_push()
114 zend_worklist_stack_push(&worklist->stack, i); in zend_worklist_push()
118 static inline int zend_worklist_peek(zend_worklist *worklist) in zend_worklist_peek() argument
120 return zend_worklist_stack_peek(&worklist->stack); in zend_worklist_peek()
123 static inline int zend_worklist_pop(zend_worklist *worklist) in zend_worklist_pop() argument
126 return zend_worklist_stack_pop(&worklist->stack); in zend_worklist_pop()