• Home
  • Raw
  • Download

Lines Matching refs:cxt

154 static Bool is_cxt(UWord hash, fn_node** fn, Context* cxt)  in is_cxt()  argument
159 if (hash != cxt->hash) return False; in is_cxt()
161 count = cxt->size; in is_cxt()
162 cxt_fn = &(cxt->fn[0]); in is_cxt()
177 Context* cxt; in new_cxt() local
196 cxt = (Context*) CLG_MALLOC("cl.context.nc.1", in new_cxt()
205 cxt->fn[offset] = *fn; in new_cxt()
212 cxt->size = size; in new_cxt()
213 cxt->base_number = CLG_(stat).context_counter; in new_cxt()
214 cxt->hash = hash; in new_cxt()
221 cxt->next = cxts.table[idx]; in new_cxt()
222 cxts.table[idx] = cxt; in new_cxt()
226 VG_(printf)(" new_cxt ox%p: ", cxt); in new_cxt()
227 CLG_(print_cxt)(12, cxt, 0); in new_cxt()
231 return cxt; in new_cxt()
237 Context* cxt; in CLG_() local
251 if ( ((cxt = (*fn)->last_cxt) != 0) && is_cxt(hash, fn, cxt)) { in CLG_()
252 CLG_DEBUG(5, "- get_cxt: %p\n", cxt); in CLG_()
253 return cxt; in CLG_()
259 cxt = cxts.table[idx]; in CLG_()
261 while(cxt) { in CLG_()
262 if (is_cxt(hash,fn,cxt)) break; in CLG_()
263 cxt = cxt->next; in CLG_()
266 if (!cxt) in CLG_()
267 cxt = new_cxt(fn); in CLG_()
269 (*fn)->last_cxt = cxt; in CLG_()
271 CLG_DEBUG(5, "- get_cxt: %p\n", cxt); in CLG_()
273 return cxt; in CLG_()
288 CLG_(current_state).cxt ? in CLG_()
289 CLG_(current_state).cxt->base_number : -1); in CLG_()
293 CLG_ASSERT(cs->entry[cs->sp].cxt == 0); in CLG_()
294 cs->entry[cs->sp].cxt = CLG_(current_state).cxt; in CLG_()
331 CLG_(current_state).cxt = CLG_(get_cxt)(CLG_(current_fn_stack).top); in CLG_()
335 CLG_(current_state).cxt ? in CLG_()
336 CLG_(current_state).cxt->base_number : -1, in CLG_()