Joseph Wenninger
Christian Thalinger
- $Id: parse.c 5785 2006-10-15 22:25:54Z edwin $
+ $Id: parse.c 5790 2006-10-16 09:59:52Z edwin $
*/
static bool parse_resolve_exception_table(jitdata *jd)
{
- codegendata *cd;
methodinfo *m;
raw_exception_entry *rex;
exception_entry *ex;
classinfo *exclass;
m = jd->m;
- cd = jd->cd;
len = m->rawexceptiontablelength;
{
methodinfo *m; /* method being parsed */
codeinfo *code;
- codegendata *cd;
parsedata_t pd;
instruction *iptr; /* current ptr into instruction array */
s4 ipc; /* intermediate instruction counter */
m = jd->m;
code = jd->code;
- cd = jd->cd;
/* allocate buffers for local variable renaming */
- local_map = DMNEW(int, cd->maxlocals * 5);
- for (i = 0; i < cd->maxlocals; i++) {
+ local_map = DMNEW(int, m->maxlocals * 5);
+ for (i = 0; i < m->maxlocals; i++) {
local_map[i * 5 + 0] = 0;
local_map[i * 5 + 1] = 0;
local_map[i * 5 + 2] = 0;
/* iterate over local_map[0..m->maxlocals*5] and set all existing */
/* index,type pairs (local_map[index*5+type]==1) to an unique value */
/* -> == new local var index */
- for(i = 0; i < (cd->maxlocals * 5); i++, mapptr++) {
+ for(i = 0; i < (m->maxlocals * 5); i++, mapptr++) {
if (*mapptr)
*mapptr = nlocals++;
else
/* set types of all locals in jd->var */
- for(mapptr = local_map, i = 0; i < (cd->maxlocals * 5); i++, mapptr++)
+ for(mapptr = local_map, i = 0; i < (m->maxlocals * 5); i++, mapptr++)
if (*mapptr != UNUSED)
VAR(*mapptr)->type = i%5;
}
Christian Thalinger
Christian Ullrich
- $Id: stack.c 5785 2006-10-15 22:25:54Z edwin $
+ $Id: stack.c 5790 2006-10-16 09:59:52Z edwin $
*/
{
methodinfo *m; /* method being analyzed */
codeinfo *code;
- codegendata *cd;
registerdata *rd;
stackdata_t sd;
#if defined(ENABLE_SSA)
m = jd->m;
code = jd->code;
- cd = jd->cd;
rd = jd->rd;
#if defined(ENABLE_SSA)
ls = jd->ls;
for (i = 0; i < m->maxstack * 5; i++)
jd->interface_map[i].flags = UNUSED;
- last_store_boundary = DMNEW(stackptr, cd->maxlocals);
+ last_store_boundary = DMNEW(stackptr, m->maxlocals);
/* initialize flags and invars (none) of first block */
/* reset variables for dependency checking */
coalescing_boundary = sd.new;
- for( i = 0; i < cd->maxlocals; i++)
+ for( i = 0; i < m->maxlocals; i++)
last_store_boundary[i] = sd.new;
/* remember the start of this block's variables */