pike.git / src / peep.c

version» Context lines:

pike.git/src/peep.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: peep.c,v 1.91 2003/10/10 01:39:01 mast Exp $ + || $Id: peep.c,v 1.92 2003/10/17 03:49:26 nilsson Exp $   */      #include "global.h"   #include "language.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "program.h"   #include "las.h"   #include "docode.h"   #include "main.h"
pike.git/src/peep.c:19:   #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.91 2003/10/10 01:39:01 mast Exp $"); + RCSID("$Id: peep.c,v 1.92 2003/10/17 03:49:26 nilsson Exp $");      static void asm_opt(void);      dynamic_buffer instrbuf;      #ifdef PIKE_DEBUG   static int hasarg(int opcode)   {    return instrs[opcode-F_OFFSET].flags & I_HASARG;   }
pike.git/src/peep.c:873:    }    break;    }    }       va_end(arglist);       DO_OPTIMIZATION_POSTQUEL(q);   }    + #include "peep_engine.c"      static void asm_opt(void)   {   #ifdef PIKE_DEBUG    if(a_flag > 3)    {    p_instr *c;    ptrdiff_t e, length;    int synch_depth = 0;   
pike.git/src/peep.c:898: Inside #if defined(PIKE_DEBUG)
   {    if (c->opcode == F_POP_SYNCH_MARK) synch_depth--;    fprintf(stderr,"<<<%4d: %*s",c->line,synch_depth,"");    dump_instr(c);    fprintf(stderr,"\n");    if (c->opcode == F_SYNCH_MARK) synch_depth++;    }    }   #endif    - #include "peep_engine.c" +  len=instrbuf.s.len/sizeof(p_instr); +  instructions=(p_instr *)instrbuf.s.str; +  instrbuf.s.str=0; +  fifo_len=0; +  init_bytecode();    -  +  for(eye=0;eye<len || fifo_len;) +  { +    #ifdef PIKE_DEBUG -  +  if(a_flag>6) { +  int e; +  fprintf(stderr, "#%ld,%d:", +  DO_NOT_WARN((long)eye), +  fifo_len); +  for(e=0;e<4;e++) { +  fprintf(stderr," "); +  dump_instr(instr(e)); +  } +  fprintf(stderr,"\n"); +  } + #endif +  +  low_asm_opt(); +  advance(); +  } +  +  for(eye=0;eye<len;eye++) free_string(instructions[eye].file); +  free((char *)instructions); +  + #ifdef PIKE_DEBUG    if(a_flag > 4)    {    p_instr *c;    ptrdiff_t e, length;    int synch_depth = 0;       c=(p_instr *)instrbuf.s.str;    length=instrbuf.s.len / sizeof(p_instr);       fprintf(stderr,"After peep optimization:\n");