From: Aleksey Demakov Date: Tue, 27 May 2008 10:51:28 +0000 (+0000) Subject: remove useless longjmp_label field from jit_builder_t struct X-Git-Tag: before.move.to.git~67 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=26685e5a6be8e7254f6d1163e4d3301b0f9c238d;p=francis%2Flibjit.git remove useless longjmp_label field from jit_builder_t struct --- diff --git a/ChangeLog b/ChangeLog index 95476af..043b922 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ +2008-05-27 Aleksey Demakov + + * jit/jit-internal.h (jit_builder_t): + * jit/jit-insn.c (initialize_setjmp_block): remove longjmp_label + field as useless. + 2008-05-26 Klaus Treichel - * tools/gen-rules-parser.y, tools/gen-rules-scanner-l: Add the imms32 + * tools/gen-rules-parser.y, tools/gen-rules-scanner.l: Add the imms32 and immu32 keywords for 32bit signed and unsigned immediate values. * tools/gen-apply.c: Add support for apply return structs where diff --git a/jit/jit-insn.c b/jit/jit-insn.c index 7ad8f33..80e58dd 100644 --- a/jit/jit-insn.c +++ b/jit/jit-insn.c @@ -7150,7 +7150,6 @@ static int initialize_setjmp_block(jit_function_t func) { return 1; } - func->builder->longjmp_label = jit_label_undefined; func->builder->catcher_label = jit_label_undefined; /* Force the start of a new block to mark the start of the init code */ @@ -7250,12 +7249,6 @@ static int initialize_setjmp_block(jit_function_t func) return 0; } - /* The current point in the code is where "longjmp" will resume from */ - if(!jit_insn_label(func, &(func->builder->longjmp_label))) - { - return 0; - } - /* We need a value to hold the location of the thrown exception */ if((func->builder->thrown_pc = jit_value_create(func, jit_type_void_ptr)) == 0) diff --git a/jit/jit-internal.h b/jit/jit-internal.h index 355d803..09f8ee5 100644 --- a/jit/jit-internal.h +++ b/jit/jit-internal.h @@ -306,7 +306,6 @@ struct _jit_builder /* Exception handling definitions for the function */ jit_value_t setjmp_value; - jit_label_t longjmp_label; jit_value_t thrown_exception; jit_value_t thrown_pc; jit_label_t catcher_label;