Lines Matching refs:worklist
85 static inline int zend_worklist_prepare(zend_arena **arena, zend_worklist *worklist, int len) in zend_worklist_prepare() argument
88 …worklist->visited = (zend_bitset)zend_arena_calloc(arena, sizeof(zend_ulong), zend_bitset_len(len)… in zend_worklist_prepare()
89 return zend_worklist_stack_prepare(arena, &worklist->stack, len); in zend_worklist_prepare()
92 static inline int zend_worklist_len(zend_worklist *worklist) in zend_worklist_len() argument
94 return worklist->stack.len; in zend_worklist_len()
97 static inline int zend_worklist_push(zend_worklist *worklist, int i) in zend_worklist_push() argument
99 ZEND_ASSERT(i >= 0 && i < worklist->stack.capacity); in zend_worklist_push()
101 if (zend_bitset_in(worklist->visited, i)) { in zend_worklist_push()
105 zend_bitset_incl(worklist->visited, i); in zend_worklist_push()
106 zend_worklist_stack_push(&worklist->stack, i); in zend_worklist_push()
110 static inline int zend_worklist_peek(zend_worklist *worklist) in zend_worklist_peek() argument
112 return zend_worklist_stack_peek(&worklist->stack); in zend_worklist_peek()
115 static inline int zend_worklist_pop(zend_worklist *worklist) in zend_worklist_pop() argument
118 return zend_worklist_stack_pop(&worklist->stack); in zend_worklist_pop()