Lines Matching refs:es
201 exec_state *es; in CLG_() local
213 es = push_exec_state(sigNum); in CLG_()
214 CLG_(zero_cost)( CLG_(sets).full, es->cost ); in CLG_()
215 CLG_(current_state).cost = es->cost; in CLG_()
216 es->call_stack_bottom = CLG_(current_call_stack).sp; in CLG_()
231 exec_state* es = top_exec_state(); in CLG_() local
232 CLG_ASSERT(es != 0); in CLG_()
235 if (CLG_(current_call_stack).sp == es->call_stack_bottom) in CLG_()
241 exec_state* es; in CLG_() local
254 es = top_exec_state(); in CLG_()
255 CLG_ASSERT(es != 0); in CLG_()
256 while(CLG_(current_call_stack).sp > es->call_stack_bottom) in CLG_()
282 CLG_ASSERT(CLG_(current_state).cost == es->cost); in CLG_()
288 es->sig = -1; in CLG_()
290 es = top_exec_state(); in CLG_()
291 CLG_(current_state).sig = es->sig; in CLG_()
315 void CLG_(init_exec_state)(exec_state* es) in CLG_()
317 es->collect = CLG_(clo).collect_atstart; in CLG_()
318 es->cxt = 0; in CLG_()
319 es->jmps_passed = 0; in CLG_()
320 es->bbcc = 0; in CLG_()
321 es->nonskipped = 0; in CLG_()
327 exec_state* es; in new_exec_state() local
328 es = (exec_state*) CLG_MALLOC("cl.threads.nes.1", in new_exec_state()
333 es->cost = CLG_(get_eventset_cost)(CLG_(sets).full); in new_exec_state()
334 CLG_(zero_cost)( CLG_(sets).full, es->cost ); in new_exec_state()
335 CLG_(init_exec_state)(es); in new_exec_state()
336 es->sig = sigNum; in new_exec_state()
337 es->call_stack_bottom = 0; in new_exec_state()
339 return es; in new_exec_state()
342 void CLG_(init_exec_stack)(exec_stack* es) in CLG_()
347 es->entry[0] = new_exec_state(0); in CLG_()
349 es->entry[i] = 0; in CLG_()
350 es->sp = 0; in CLG_()
377 exec_state* es; in top_exec_state() local
380 es = current_states.entry[sp]; in top_exec_state()
381 CLG_ASSERT(es != 0); in top_exec_state()
382 return es; in top_exec_state()
392 exec_state* es; in push_exec_state() local
399 es = current_states.entry[sp]; in push_exec_state()
400 if (!es) { in push_exec_state()
401 es = new_exec_state(sigNum); in push_exec_state()
402 current_states.entry[sp] = es; in push_exec_state()
405 es->sig = sigNum; in push_exec_state()
407 return es; in push_exec_state()
414 exec_state* es = top_exec_state(); in exec_state_save() local
416 es->cxt = CLG_(current_state).cxt; in exec_state_save()
417 es->collect = CLG_(current_state).collect; in exec_state_save()
418 es->jmps_passed = CLG_(current_state).jmps_passed; in exec_state_save()
419 es->bbcc = CLG_(current_state).bbcc; in exec_state_save()
420 es->nonskipped = CLG_(current_state).nonskipped; in exec_state_save()
421 CLG_ASSERT(es->cost == CLG_(current_state).cost); in exec_state_save()
425 es->sig, es->collect ? "Yes": "No", es->jmps_passed); in exec_state_save()
426 CLG_(print_bbcc)(-9, es->bbcc); in exec_state_save()
427 CLG_(print_cost)(-9, CLG_(sets).full, es->cost); in exec_state_save()
431 CLG_ASSERT(CLG_(current_state).sig == es->sig); in exec_state_save()
433 return es; in exec_state_save()
439 exec_state* es = top_exec_state(); in exec_state_restore() local
441 CLG_(current_state).cxt = es->cxt; in exec_state_restore()
442 CLG_(current_state).collect = es->collect; in exec_state_restore()
443 CLG_(current_state).jmps_passed = es->jmps_passed; in exec_state_restore()
444 CLG_(current_state).bbcc = es->bbcc; in exec_state_restore()
445 CLG_(current_state).nonskipped = es->nonskipped; in exec_state_restore()
446 CLG_(current_state).cost = es->cost; in exec_state_restore()
447 CLG_(current_state).sig = es->sig; in exec_state_restore()
451 es->sig, es->collect ? "Yes": "No", es->jmps_passed); in exec_state_restore()
452 CLG_(print_bbcc)(-9, es->bbcc); in exec_state_restore()
453 CLG_(print_cxt)(-9, es->cxt, 0); in exec_state_restore()
454 CLG_(print_cost)(-9, CLG_(sets).full, es->cost); in exec_state_restore()
457 return es; in exec_state_restore()