/* src/vm/jit/allocator/liveness.c - liveness analysis for lsra
- Copyright (C) 2005, 2006 R. Grafl, A. Krall, C. Kruegel,
+ Copyright (C) 2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
J. Wenninger, Institut f. Computersprachen - TU Wien
Authors: Christian Ullrich
- Changes:
-
- $Id: liveness.c $
*/
+
+#include "config.h"
+
#include <limits.h>
#include <stdlib.h>
+#include "vm/types.h"
+
#include "mm/memory.h"
#include "toolbox/logging.h"
#include "vm/jit/allocator/lsra.h"
#include "vm/jit/allocator/liveness.h"
+
/* function prototypes */
void liveness_scan_registers_canditates(jitdata *jd, int b_index, int iindex,
stackptr src, lv_sets *sets);
}
}
ls->maxlifetimes = lifetimes;
- ls->lifetimecount = lifetimes + jd->cd->maxlocals * (TYPE_ADR+1);
+ ls->lifetimecount = lifetimes + jd->maxlocals * (TYPE_ADR+1);
}
void liveness_scan_basicblock(jitdata *jd, int b_index,
break;
default:
- *exceptionptr =
- new_internalerror("Unknown ICMD %d during register allocation",
- iptr->opc);
+ exceptions_throw_internalerror("Unknown ICMD %d during register allocation",
+ iptr->opc);
return;
} /* switch */
}