pike.git / src / peep.c

version» Context lines:

pike.git/src/peep.c:317: Inside #if undefined(INS_ENTRY)
  #ifndef INS_ENTRY    /* Replace F_ENTRY with F_NOP if we have no entry prologue. */    for (c = (p_instr *) instrbuf.s.str, e = 0; e < length; e++, c++)    if (c->opcode == F_ENTRY) c->opcode = F_NOP;   #endif       labels=(INT32 *)xalloc(sizeof(INT32) * 4 * (max_label+2));    jumps = labels + max_label + 2;    uses = jumps + max_label + 2;    aliases = uses + max_label + 2; -  +     while(relabel)    {    /* First do the relabel pass. */    for(e=0;e<=max_label;e++)    {    labels[e]=jumps[e]= aliases[e] = -1;    uses[e]=0;    }       c=(p_instr *)instrbuf.s.str;
pike.git/src/peep.c:453: Inside #if 1 and #if defined(PIKE_DEBUG)
  #ifdef PIKE_DEBUG    if (a_flag > 3)    fprintf(stderr, "Rerunning optimizer.\n");   #endif   #else /* !1 */    relabel = 0;   #endif /* 1 */    }       /* Time to create the actual bytecode. */ -  +     c=(p_instr *)instrbuf.s.str;    length=instrbuf.s.len / sizeof(p_instr);       for(e=0;e<=max_label;e++) labels[e]=jumps[e]=-1; -  - #ifdef ALIGN_PIKE_FUNCTION_BEGINNINGS -  while( ( (((INT32) PIKE_PC)+2) & (ALIGN_PIKE_JUMPS-1))) -  ins_byte(0); - #endif -  +    #ifdef PIKE_PORTABLE_BYTECODE    if (store_linenumbers) {    ins_data(store_prog_string(tripples));    free_string(tripples);    } else {    ins_data(0);    }   #endif /* PIKE_PORTABLE_BYTECODE */    -  +  + #ifdef START_NEW_FUNCTION +  START_NEW_FUNCTION(store_linenumbers); + #endif +  + #ifdef ALIGN_PIKE_FUNCTION_BEGINNINGS +  while( ( (((INT32) PIKE_PC)+2) & (ALIGN_PIKE_JUMPS-1))) +  ins_byte(0); + #endif +     entry_point = PIKE_PC;      #ifdef PIKE_DEBUG    synch_depth = 0;   #endif    FLUSH_CODE_GENERATOR_STATE();    for(e=0;e<length;e++)    {   #ifdef PIKE_DEBUG    if (c != (((p_instr *)instrbuf.s.str)+e)) {
pike.git/src/peep.c:753:   #endif       tmp = read_pointer(jumps[e]);    upd_pointer(jumps[e], tmp2 - jumps[e]);    jumps[e]=tmp;    }    }       free((char *)labels);    + #ifdef END_FUNCTION +  END_FUNCTION(store_linenumbers); + #endif +    #ifdef PIKE_DEBUG    if (a_flag > 6) {    size_t len = (Pike_compiler->new_program->num_program - fun_start)*    sizeof(PIKE_OPCODE_T);    fprintf(stderr, "Code at offset %"PRINTSIZET"d through %"PRINTSIZET"d:\n",    fun_start, Pike_compiler->new_program->num_program-1);   #ifdef DISASSEMBLE_CODE    DISASSEMBLE_CODE(Pike_compiler->new_program->program + fun_start, len);   #else /* !DISASSEMBLE_CODE */    {