new_instruction *.
* src/vm/jit/stack.c (new_stack_analyse): Removed obsolete casts.
* src/vm/jit/show.c (new_show_basicblock): Likewise.
* src/vm/jit/verify/typecheck.c (verify_basic_block): Likewise.
* src/vm/jit/allocator/simplereg.c (new_allocate_scratch_registers):
Likewise.
* src/vm/jit/parse.c (new_parse): Likewise.
* src/vm/jit/x86_64/codegen.c (new_parse): Likewise.
--HG--
branch : new_instruction_format
Michael Starzinger
Edwin Steiner
- $Id: simplereg.c 5317 2006-09-05 12:29:16Z edwin $
+ $Id: simplereg.c 5321 2006-09-05 16:12:09Z edwin $
*/
while (bptr != NULL) {
if (bptr->flags >= BBREACHED) {
- iptr = /* XXX */ (new_instruction *) bptr->iinstr;
+ iptr = bptr->iinstr;
len = bptr->icount;
while (--len >= 0) {
Changes: Christian Thalinger
Edwin Steiner
- $Id: jit.h 5318 2006-09-05 12:42:12Z edwin $
+ $Id: jit.h 5321 2006-09-05 16:12:09Z edwin $
*/
s4 flags; /* used during stack analysis, init with -1 */
s4 bitflags; /* OR of BBFLAG_... constants, init with 0 */
s4 type; /* basic block type (std, xhandler, subroutine*/
- instruction *iinstr; /* pointer to intermediate code instructions */
+ new_instruction *iinstr; /* pointer to intermediate code instructions */
s4 icount; /* number of intermediate code instructions */
s4 mpc; /* machine code pc at start of block */
stackptr instack; /* stack at begin of basic block */
Joseph Wenninger
Christian Thalinger
- $Id: parse.c 5302 2006-09-05 10:37:26Z edwin $
+ $Id: parse.c 5321 2006-09-05 16:12:09Z edwin $
*/
if (!jd->new_basicblockindex[0] || (jd->new_basicblockindex[0] > 1)) {
BASICBLOCK_INIT(bptr, m);
- bptr->iinstr = /* XXX */ (instruction *) jd->new_instructions;
+ bptr->iinstr = jd->new_instructions;
/* bptr->icount is set when the next block is allocated */
bptr++;
BASICBLOCK_INIT(bptr, m);
- bptr->iinstr = /* XXX */ (instruction *) (jd->new_instructions + (jd->new_basicblockindex[p] >> 1));
+ bptr->iinstr = jd->new_instructions + (jd->new_basicblockindex[p] >> 1);
if (b_count) {
- bptr[-1].icount = /*XXX*/ (new_instruction *)bptr->iinstr - (new_instruction*) bptr[-1].iinstr;
+ bptr[-1].icount = bptr->iinstr - bptr[-1].iinstr;
}
/* bptr->icount is set when the next block is allocated */
/* set instruction count of last real block */
if (b_count) {
- bptr[-1].icount = (jd->new_instructions + jd->new_instructioncount) - /* XXX */ (new_instruction *) bptr[-1].iinstr;
+ bptr[-1].icount = (jd->new_instructions + jd->new_instructioncount) - bptr[-1].iinstr;
}
/* allocate additional block at end */
printf("\n");
}
- iptr = /*XXX*/ (new_instruction *) bptr->iinstr;
+ iptr = bptr->iinstr;
for (i = 0; i < bptr->icount; i++, iptr++) {
printf("%4d: ", iptr->line);
Christian Thalinger
Christian Ullrich
- $Id: stack.c 5311 2006-09-05 11:40:03Z edwin $
+ $Id: stack.c 5321 2006-09-05 16:12:09Z edwin $
*/
/* get the last instruction of the block */
- iptr = /* XXX */ (new_instruction *) bptr->iinstr + (bptr->icount - 1);
+ iptr = bptr->iinstr + (bptr->icount - 1);
switch (iptr->opc) {
/* instruction stopping control flow */
superblockend = false;
bptr->flags = BBFINISHED;
len = bptr->icount;
- iptr = /* XXX */ (new_instruction *) bptr->iinstr;
+ iptr = bptr->iinstr;
b_index = bptr - jd->new_basicblocks;
/* reset variables for dependency checking */
Changes: Christian Thalinger
- $Id: typecheck.c 5317 2006-09-05 12:29:16Z edwin $
+ $Id: typecheck.c 5321 2006-09-05 16:12:09Z edwin $
*/
/* loop over the instructions */
len = state->bptr->icount;
- state->iptr = /* XXX */ (new_instruction *) state->bptr->iinstr;
+ state->iptr = state->bptr->iinstr;
while (--len >= 0) {
TYPECHECK_COUNT(stat_ins);
Changes: Christian Ullrich
Edwin Steiner
- $Id: codegen.c 5318 2006-09-05 12:42:12Z edwin $
+ $Id: codegen.c 5321 2006-09-05 16:12:09Z edwin $
*/
len = bptr->icount;
currentline = 0;
- for (iptr = /* XXX */ (new_instruction *) bptr->iinstr; len > 0; len--, iptr++) {
+ for (iptr = bptr->iinstr; len > 0; len--, iptr++) {
if (iptr->line != currentline) {
dseg_addlinenumber(cd, iptr->line);
currentline = iptr->line;