Lines Matching refs:worklist
83 static inline void zend_worklist_prepare(zend_arena **arena, zend_worklist *worklist, int len) in zend_worklist_prepare() argument
86 …worklist->visited = (zend_bitset)zend_arena_calloc(arena, sizeof(zend_ulong), zend_bitset_len(len)… in zend_worklist_prepare()
87 zend_worklist_stack_prepare(arena, &worklist->stack, len); in zend_worklist_prepare()
90 static inline int zend_worklist_len(const zend_worklist *worklist) in zend_worklist_len() argument
92 return worklist->stack.len; in zend_worklist_len()
95 static inline bool zend_worklist_push(zend_worklist *worklist, int i) in zend_worklist_push() argument
97 ZEND_ASSERT(i >= 0 && i < worklist->stack.capacity); in zend_worklist_push()
99 if (zend_bitset_in(worklist->visited, i)) { in zend_worklist_push()
103 zend_bitset_incl(worklist->visited, i); in zend_worklist_push()
104 zend_worklist_stack_push(&worklist->stack, i); in zend_worklist_push()
108 static inline int zend_worklist_peek(const zend_worklist *worklist) in zend_worklist_peek() argument
110 return zend_worklist_stack_peek(&worklist->stack); in zend_worklist_peek()
113 static inline int zend_worklist_pop(zend_worklist *worklist) in zend_worklist_pop() argument
116 return zend_worklist_stack_pop(&worklist->stack); in zend_worklist_pop()