Lines Matching refs:cxt

147 static Bool is_cxt(UWord hash, fn_node** fn, Context* cxt)  in is_cxt()  argument
152 if (hash != cxt->hash) return False; in is_cxt()
154 count = cxt->size; in is_cxt()
155 cxt_fn = &(cxt->fn[0]); in is_cxt()
170 Context* cxt; in new_cxt() local
189 cxt = (Context*) CLG_MALLOC("cl.context.nc.1", in new_cxt()
198 cxt->fn[offset] = *fn; in new_cxt()
205 cxt->size = size; in new_cxt()
206 cxt->base_number = CLG_(stat).context_counter; in new_cxt()
207 cxt->hash = hash; in new_cxt()
214 cxt->next = cxts.table[idx]; in new_cxt()
215 cxts.table[idx] = cxt; in new_cxt()
219 VG_(printf)(" new_cxt ox%p: ", cxt); in new_cxt()
220 CLG_(print_cxt)(12, cxt, 0); in new_cxt()
224 return cxt; in new_cxt()
230 Context* cxt; in CLG_() local
244 if ( ((cxt = (*fn)->last_cxt) != 0) && is_cxt(hash, fn, cxt)) { in CLG_()
245 CLG_DEBUG(5, "- get_cxt: %p\n", cxt); in CLG_()
246 return cxt; in CLG_()
252 cxt = cxts.table[idx]; in CLG_()
254 while(cxt) { in CLG_()
255 if (is_cxt(hash,fn,cxt)) break; in CLG_()
256 cxt = cxt->next; in CLG_()
259 if (!cxt) in CLG_()
260 cxt = new_cxt(fn); in CLG_()
262 (*fn)->last_cxt = cxt; in CLG_()
264 CLG_DEBUG(5, "- get_cxt: %p\n", cxt); in CLG_()
266 return cxt; in CLG_()
281 CLG_(current_state).cxt ? in CLG_()
282 CLG_(current_state).cxt->base_number : -1); in CLG_()
286 CLG_ASSERT(cs->entry[cs->sp].cxt == 0); in CLG_()
287 cs->entry[cs->sp].cxt = CLG_(current_state).cxt; in CLG_()
324 CLG_(current_state).cxt = CLG_(get_cxt)(CLG_(current_fn_stack).top); in CLG_()
328 CLG_(current_state).cxt ? in CLG_()
329 CLG_(current_state).cxt->base_number : -1, in CLG_()