pike.git / src / peep.c

version» Context lines:

pike.git/src/peep.c:12:   #include "peep.h"   #include "dmalloc.h"   #include "stuff.h"   #include "bignum.h"   #include "opcodes.h"   #include "builtin_functions.h"   #include "constants.h"   #include "interpret.h"   #include "pikecode.h"    - RCSID("$Id: peep.c,v 1.73 2002/08/30 14:59:41 grubba Exp $"); + RCSID("$Id: peep.c,v 1.74 2002/09/24 09:11:17 grubba Exp $");      static void asm_opt(void);      dynamic_buffer instrbuf;      static int hasarg(int opcode)   {    return instrs[opcode-F_OFFSET].flags & I_HASARG;   }   
pike.git/src/peep.c:153:       c=(p_instr *)instrbuf.s.str;    length=instrbuf.s.len / sizeof(p_instr);      #ifdef PIKE_DEBUG    for (e = 0; e < length; e++) {    if((a_flag > 1 && store_linenumbers) || a_flag > 2)    {    if (c[e].opcode == F_POP_SYNCH_MARK) synch_depth--;    fprintf(stderr, "~~~%4d %4lx %*s", c[e].line, -  DO_NOT_WARN((unsigned long)PIKE_PC), synch_depth, ""); +  DO_NOT_WARN((unsigned long)e), synch_depth, "");    dump_instr(c+e);    fprintf(stderr,"\n");    if (c[e].opcode == F_SYNCH_MARK) synch_depth++;    }    }   #endif       max_label=-1;    for(e=0;e<length;e++,c++)    if(c->opcode == F_LABEL)
pike.git/src/peep.c:254:    {    if(!uses[e] && labels[e]>=0)    {    c[labels[e]].opcode=F_NOP;    reoptimize++;    }    }    if(!reoptimize) break;       asm_opt(); - #if 0 + #if 1    /* fprintf(stderr, "Rerunning optimizer.\n"); */ - #else /* !0 */ + #else /* !1 */    reoptimize=0; - #endif /* 0 */ + #endif /* 1 */    }       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;       c=(p_instr *)instrbuf.s.str;   #ifdef PIKE_DEBUG    synch_depth = 0;