From: Aleksey Demakov Date: Thu, 3 Jan 2008 17:01:16 +0000 (+0000) Subject: fix fixups for interpreter X-Git-Tag: before.move.to.git~118 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=65fbbeafd95c4a6f94928de0530516016e434f7b;p=francis%2Flibjit.git fix fixups for interpreter --- diff --git a/ChangeLog b/ChangeLog index 2fd3a81..9c8df07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ * jit/jit-opcode.c: Add the nint argument to the copy_struct opcode. + * jit/jit-rules-interp.c (_jit_gen_start_block): Fix fixups for + interpreter. + 2007-12-31 Klaus Treichel * jit/jit-apply-x86-64.h: Swap source and destination for the call of diff --git a/jit/jit-rules-interp.c b/jit/jit-rules-interp.c index 705f705..7004b5d 100644 --- a/jit/jit-rules-interp.c +++ b/jit/jit-rules-interp.c @@ -1575,7 +1575,7 @@ void _jit_gen_start_block(jit_gencode_t gen, jit_block_t block) /* If this block has pending fixups, then apply them now */ fixup = (void **)(block->fixup_list); - while(fixup != 0 && ((unsigned char *)fixup[2] - 1) < gen->posn.limit) + while(fixup != 0) { next = (void **)(fixup[1]); fixup[1] = (void *)(jit_nint)(((void **)(block->address)) - fixup);