pike.git / src / peep.c

version» Context lines:

pike.git/src/peep.c:8:   #include "main.h"   #include "pike_error.h"   #include "lex.h"   #include "pike_memory.h"   #include "peep.h"   #include "dmalloc.h"   #include "stuff.h"   #include "bignum.h"   #include "opcodes.h"    - RCSID("$Id: peep.c,v 1.42 2000/12/01 08:09:52 hubbe Exp $"); + RCSID("$Id: peep.c,v 1.43 2000/12/02 14:23:21 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:428:    exit_bytecode();   }      /**** Peephole optimizer ****/      int remove_clear_locals=0x7fffffff;   static int fifo_len;   static ptrdiff_t eye, len;   static p_instr *instructions;    - ptrdiff_t insopt2(int f, INT32 a, INT32 b, int cl, struct pike_string *cf) + static INLINE ptrdiff_t insopt2(int f, INT32 a, INT32 b, +  int cl, struct pike_string *cf)   {    p_instr *p;      #ifdef PIKE_DEBUG    if(!hasarg2(f) && b)    fatal("hasarg(%d) is wrong!\n",f);   #endif       p=(p_instr *)low_make_buf_space(sizeof(p_instr), &instrbuf);   
pike.git/src/peep.c:452:    p-=fifo_len;    }      #ifdef PIKE_DEBUG    if(!instrbuf.s.len)    fatal("Low make buf space failed!!!!!!\n");   #endif       p->opcode=f;    p->line=cl; -  copy_shared_string(p->file, lex.current_file); +  copy_shared_string(p->file, cf);    p->arg=a;    p->arg2=b;       return p - (p_instr *)instrbuf.s.str;   }    - ptrdiff_t insopt1(int f, INT32 a, int cl, struct pike_string *cf) + static INLINE ptrdiff_t insopt1(int f, INT32 a, int cl, struct pike_string *cf)   {   #ifdef PIKE_DEBUG    if(!hasarg(f) && a)    fatal("hasarg(%d) is wrong!\n",f);   #endif       return insopt2(f,a,0,cl, cf);   }    - ptrdiff_t insopt0(int f, int cl, struct pike_string *cf) + statci INLINE ptrdiff_t insopt0(int f, int cl, struct pike_string *cf)   {   #ifdef PIKE_DEBUG    if(hasarg(f))    fatal("hasarg(%d) is wrong!\n",f);   #endif    return insopt2(f,0,0,cl, cf);   }      static void debug(void)   {