Lines Matching refs:jcc
561 static void fprint_jcc(VgFile *fp, jCC* jcc, AddrPos* curr, AddrPos* last, in fprint_jcc() argument
569 CLG_DEBUG(2, " fprint_jcc (jkind %d)\n", (Int)jcc->jmpkind); in fprint_jcc()
570 CLG_(print_jcc)(-10, jcc); in fprint_jcc()
573 CLG_ASSERT(jcc->to !=0); in fprint_jcc()
574 CLG_ASSERT(jcc->from !=0); in fprint_jcc()
576 if (!get_debug_pos(jcc->to, bb_addr(jcc->to->bb), &target)) { in fprint_jcc()
581 if ((jcc->jmpkind == jk_CondJump) || (jcc->jmpkind == jk_Jump)) { in fprint_jcc()
584 CLG_ASSERT(CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost)); in fprint_jcc()
590 CLG_ASSERT(jcc->from->bb->obj == jcc->to->bb->obj); in fprint_jcc()
594 jcc->call_counter = 0; in fprint_jcc()
605 if (jcc->from->cxt != jcc->to->cxt) { in fprint_jcc()
608 jcc->to->cxt, jcc->to->rec_index); in fprint_jcc()
610 print_fn(fp, "jfn", jcc->to->cxt->fn[0]); in fprint_jcc()
613 if (jcc->jmpkind == jk_CondJump) { in fprint_jcc()
616 jcc->call_counter, ecounter); in fprint_jcc()
621 jcc->call_counter); in fprint_jcc()
629 jcc->call_counter = 0; in fprint_jcc()
633 file = jcc->to->cxt->fn[0]->file; in fprint_jcc()
634 obj = jcc->to->bb->obj; in fprint_jcc()
637 if (jcc->from->cxt->fn[0]->file->obj != obj) { in fprint_jcc()
647 print_mangled_fn(fp, "cfn", jcc->to->cxt, jcc->to->rec_index); in fprint_jcc()
649 print_fn(fp, "cfn", jcc->to->cxt->fn[0]); in fprint_jcc()
651 if (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost)) { in fprint_jcc()
653 jcc->call_counter); in fprint_jcc()
658 fprint_cost(fp, CLG_(dumpmap), jcc->cost); in fprint_jcc()
660 CLG_(init_cost)( CLG_(sets).full, jcc->cost ); in fprint_jcc()
662 jcc->call_counter = 0; in fprint_jcc()
685 jCC* jcc; in fprint_bbcc() local
737 for(jcc=bbcc->jmp[jmp].jcc_list; jcc; jcc=jcc->next_from) in fprint_bbcc()
738 if (((jcc->jmpkind != jk_Call) && (jcc->call_counter >0)) || in fprint_bbcc()
739 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost ))) in fprint_bbcc()
751 for(jcc=bbcc->jmp[jmp].jcc_list; jcc; jcc=jcc->next_from) { in fprint_bbcc()
752 if (((jcc->jmpkind != jk_Call) && (jcc->call_counter >0)) || in fprint_bbcc()
753 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost ))) in fprint_bbcc()
754 fprint_jcc(fp, jcc, &(currCost->p), last, ecounter); in fprint_bbcc()
769 for(jcc=bbcc->jmp[jmp].jcc_list; jcc; jcc=jcc->next_from) { in fprint_bbcc()
771 if ( ((jcc->jmpkind != jk_Call) && (jcc->call_counter >0)) || in fprint_bbcc()
772 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost ))) in fprint_bbcc()
802 for(jcc=bbcc->jmp[jmp].jcc_list; jcc; jcc=jcc->next_from) { in fprint_bbcc()
803 CLG_ASSERT(jcc->jmp == jmp); in fprint_bbcc()
804 if ( ((jcc->jmpkind != jk_Call) && (jcc->call_counter >0)) || in fprint_bbcc()
805 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost ))) in fprint_bbcc()
807 fprint_jcc(fp, jcc, &(currCost->p), last, ecounter); in fprint_bbcc()
1046 if (e->jcc == 0) continue; in cs_addCount()
1048 CLG_(add_diff_cost_lz)( CLG_(sets).full, &(e->jcc->cost), in cs_addCount()
1050 bbcc = e->jcc->from; in cs_addCount()
1074 if (e->jcc == 0) continue; in cs_addPtr()
1076 bbcc = e->jcc->from; in cs_addPtr()