Branch: Tag:

2001-08-16

2001-08-16 18:49:47 by Marcus Comstedt <marcus@mc.pp.se>

Changes to enable INS_F_JUMP to just custom encoding of offsets.

Rev: src/code/ia32.c:1.16
Rev: src/code/ia32.h:1.13
Rev: src/peep.c:1.69

19:   #include "interpret.h"   #include "pikecode.h"    - RCSID("$Id: peep.c,v 1.68 2001/08/15 16:40:47 marcus Exp $"); + RCSID("$Id: peep.c,v 1.69 2001/08/16 18:49:46 marcus Exp $");      static void asm_opt(void);   
138:   #define FLUSH_CODE_GENERATOR_STATE()   #endif    -  +    /**** Bytecode Generator *****/      void assemble(void)
328: Inside #if defined(INS_F_JUMP)
   tmp=INS_F_JUMP(c->opcode);    if(tmp != -1)    { -  upd_pointer(tmp, jumps[c->arg]); +  UPDATE_F_JUMP(tmp, jumps[c->arg]);    jumps[c->arg]=~tmp;    break;    }
407: Inside #if defined(INS_F_JUMP)
  #ifdef INS_F_JUMP    if(jumps[e] < 0)    { -  tmp = read_pointer(~jumps[e]); +  tmp = READ_F_JUMP(~jumps[e]);    UPDATE_F_JUMP(~jumps[e], tmp2);    jumps[e]=tmp;    continue;