Browse Source

_jit_gen_start_block: set the address of the exception handler for


			
			
				cache-refactoring
			
			
		
Rhys Weatherley 21 years ago
parent
commit
be08d549bf
  1. 3
      ChangeLog
  2. 8
      jit/jit-rules-interp.c

3
ChangeLog

@ -9,6 +9,9 @@
rewrite the exception region routines to make them easier
to use from CLI and JVM style systems.
* jit/jit-rules-interp.c (_jit_gen_start_block): set the address
of the exception handler for interpreted code.
2004-05-22 Rhys Weatherley <rweather@southern-storm.com.au>
* jit/jit-block.c (_jit_block_peephole_branch): don't allow

8
jit/jit-rules-interp.c

@ -1647,6 +1647,14 @@ void _jit_gen_start_block(jit_gencode_t gen, jit_block_t block)
fixup = next;
}
block->fixup_list = 0;
/* If this is the exception catcher block, then we need to update
the exception cookie for the function to point to here */
if(block->label == block->func->builder->catcher_label &&
block->func->has_try)
{
_jit_cache_set_cookie(&(gen->posn), block->address);
}
}
/*@

Loading…
Cancel
Save