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.90 2003/10/10 01:18:25 mast Exp $ + || $Id: peep.c,v 1.91 2003/10/10 01:39:01 mast 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.90 2003/10/10 01:18:25 mast Exp $"); + RCSID("$Id: peep.c,v 1.91 2003/10/10 01:39:01 mast 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:212: Inside #if defined(PIKE_DEBUG)
   fprintf(stderr, "\n");    }    if (c->opcode == F_SYNCH_MARK) synch_depth++;    }       Pike_fatal("Reference to undefined label %d > %d\n",    max_pointer, max_label);    }   #endif /* PIKE_DEBUG */    -  labels=(INT32 *)xalloc(sizeof(INT32) * (max_label+2)); -  jumps=(INT32 *)xalloc(sizeof(INT32) * (max_label+2)); -  uses=(INT32 *)xalloc(sizeof(INT32) * (max_label+2)); +  labels=(INT32 *)xalloc(sizeof(INT32) * 3 * (max_label+2)); +  jumps = labels + max_label + 2; +  uses = jumps + max_label + 2;       while(reoptimize)    {    reoptimize=0;    for(e=0;e<=max_label;e++)    {    labels[e]=jumps[e]=-1;    uses[e]=0;    }   
pike.git/src/peep.c:593:    }   #endif       tmp = read_pointer(jumps[e]);    upd_pointer(jumps[e], tmp2 - jumps[e]);    jumps[e]=tmp;    }    }       free((char *)labels); -  free((char *)jumps); -  free((char *)uses); +       #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 %d through %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 */