* src/vm/jit/powerpc/codegen.c: Removed new_ prefix from variable and
authoredwin <none@none>
Tue, 3 Oct 2006 20:57:15 +0000 (20:57 +0000)
committeredwin <none@none>
Tue, 3 Oct 2006 20:57:15 +0000 (20:57 +0000)
field names.

* src/vm/jit/cfg.c: Likewise.
* src/vm/jit/sparc64/codegen.c: Likewise.
* src/vm/jit/reorder.c: Likewise.
* src/vm/jit/ifconv/ifconv.c: Likewise.
* src/vm/jit/alpha/codegen.c: Likewise.
* src/vm/jit/stack.c: Likewise.
* src/vm/jit/stack.h: Likewise.
* src/vm/jit/show.c: Likewise.
* src/vm/jit/verify/typecheck.c: Likewise.
* src/vm/jit/mips/codegen.c: Likewise.
* src/vm/jit/allocator/simplereg.c: Likewise.
* src/vm/jit/i386/codegen.c: Likewise.
* src/vm/jit/powerpc64/codegen.c: Likewise.
* src/vm/jit/parse.c: Likewise.
* src/vm/jit/replace.c: Likewise.
* src/vm/jit/x86_64/codegen.c: Likewise.
* src/vm/jit/parse.h: Likewise.
* src/vm/jit/jit.c: Likewise.
* src/vm/jit/jit.h: Likewise.

20 files changed:
src/vm/jit/allocator/simplereg.c
src/vm/jit/alpha/codegen.c
src/vm/jit/cfg.c
src/vm/jit/i386/codegen.c
src/vm/jit/ifconv/ifconv.c
src/vm/jit/jit.c
src/vm/jit/jit.h
src/vm/jit/mips/codegen.c
src/vm/jit/parse.c
src/vm/jit/parse.h
src/vm/jit/powerpc/codegen.c
src/vm/jit/powerpc64/codegen.c
src/vm/jit/reorder.c
src/vm/jit/replace.c
src/vm/jit/show.c
src/vm/jit/sparc64/codegen.c
src/vm/jit/stack.c
src/vm/jit/stack.h
src/vm/jit/verify/typecheck.c
src/vm/jit/x86_64/codegen.c

index 4a15c36d96f1c40cdb0723cc4671e5ff9e807c77..b4a4b1008662c36681486395cfef6e89a4fbf77d 100644 (file)
@@ -32,7 +32,7 @@
             Michael Starzinger
             Edwin Steiner
 
-   $Id: simplereg.c 5655 2006-10-03 20:44:46Z edwin $
+   $Id: simplereg.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -1183,7 +1183,7 @@ static void allocate_scratch_registers(jitdata *jd)
 
        reg_init_temp(jd, rd);
 
-       bptr = jd->new_basicblocks;
+       bptr = jd->basicblocks;
 
        while (bptr != NULL) {
                if (bptr->flags >= BBREACHED) {
@@ -1654,7 +1654,7 @@ void reg_make_statistics(jitdata *jd)
 
                /* count how many stack slots are held in memory or register */
 
-               bptr = jd->new_basicblocks;
+               bptr = jd->basicblocks;
 
                while (bptr != NULL) {
                        if (bptr->flags >= BBREACHED) {
index ca86831dcc32aec199cf182ab2df33bf6d47a15f..402d883a934406aac2691d06c0dc255bc8efdae0 100644 (file)
@@ -32,7 +32,7 @@
             Christian Ullrich
             Edwin Steiner
 
-   $Id: codegen.c 5641 2006-10-03 16:32:15Z edwin $
+   $Id: codegen.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -323,7 +323,7 @@ bool codegen(jitdata *jd)
 
        /* walk through all basic blocks */
 
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
 
                bptr->mpc = (s4) (cd->mcodeptr - cd->mcodebase);
 
index 2aebf4797fa4e4515938fc315fd85a1f1d2df732..a484afe28aebd5b77e7db3502a5a5d965113250c 100644 (file)
@@ -129,9 +129,9 @@ bool cfg_build(jitdata *jd)
 
        /* process all basic blocks to find the predecessor/successor counts */
 
-       bptr = jd->new_basicblocks;
+       bptr = jd->basicblocks;
 
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
                if ((bptr->icount == 0) || (bptr->flags == BBUNDEF))
                        continue;
 
@@ -249,9 +249,9 @@ bool cfg_build(jitdata *jd)
        /* Second iteration to allocate the arrays and insert the basic
           block pointers. */
 
-       bptr = jd->new_basicblocks;
+       bptr = jd->basicblocks;
 
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
                if ((bptr->icount == 0) || (bptr->flags == BBUNDEF))
                        continue;
 
index 4d8c933296e6aa6b10480953d5e2a2bebf462999..0adca08c9b336d8e33558403b46ed60512bfe553 100644 (file)
@@ -31,7 +31,7 @@
             Christian Ullrich
                        Edwin Steiner
 
-   $Id: codegen.c 5653 2006-10-03 20:26:10Z edwin $
+   $Id: codegen.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -410,7 +410,7 @@ bool codegen(jitdata *jd)
        replacementpoint = jd->code->rplpoints;
 
        /* walk through all basic blocks */
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
 
                bptr->mpc = (s4) (cd->mcodeptr - cd->mcodebase);
 
index 3cf57a222ce370f922a6ad8c410f8badde98f310..9d5434b93709506803a960bdda7e850edec937ad 100644 (file)
@@ -147,8 +147,8 @@ bool ifconv_static(jitdata *jd)
 
        /* iterate over all basic blocks */
 
-       bptr   = jd->new_basicblocks;
-       bcount = jd->new_basicblockcount;
+       bptr   = jd->basicblocks;
+       bcount = jd->basicblockcount;
 
        for (; bcount >= 0; bcount--, bptr++) {
                /* Deleted basic blocks are just skipped. */
@@ -972,7 +972,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
 #if !defined(NDEBUG)
        if (pattern != 0) {
-               printf("PATTERN %02d: (BB: %3d) ", pattern, jd->new_basicblockcount - bptr->nr);
+               printf("PATTERN %02d: (BB: %3d) ", pattern, jd->basicblockcount - bptr->nr);
                method_println(m);
 
                /*                                                              if (pattern == 27) { */
@@ -988,7 +988,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
                        (bptr[1].iinstr[1].opc == ICMD_GOTO))
                        {
-                               printf("CHECK 1   : (BB: %3d) ", jd->new_basicblockcount - bptr->nr);
+                               printf("CHECK 1   : (BB: %3d) ", jd->basicblockcount - bptr->nr);
                                method_println(m);
 #if 0
                                show_basicblock(jd, &bptr[1]);
@@ -1002,7 +1002,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
                        (bptr[1].iinstr[2].opc == ICMD_GOTO))
                        {
-                               printf("CHECK 2   : (BB: %3d) ", jd->new_basicblockcount - bptr->nr);
+                               printf("CHECK 2   : (BB: %3d) ", jd->basicblockcount - bptr->nr);
                                method_println(m);
 #if 0
                                show_basicblock(jd, &bptr[1]);
@@ -1016,7 +1016,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
                        (bptr[1].iinstr[3].opc == ICMD_GOTO))
                        {
-                               printf("CHECK 3   : (BB: %3d) ", jd->new_basicblockcount - bptr->nr);
+                               printf("CHECK 3   : (BB: %3d) ", jd->basicblockcount - bptr->nr);
                                method_println(m);
 #if 0
                                show_basicblock(jd, &bptr[1]);
@@ -1030,7 +1030,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
                        (bptr[1].iinstr[2].opc == ICMD_GOTO))
                        {
-                               printf("CHECK 4   : (BB: %3d) ", jd->new_basicblockcount - bptr->nr);
+                               printf("CHECK 4   : (BB: %3d) ", jd->basicblockcount - bptr->nr);
                                method_println(m);
 #if 0
                                show_basicblock(jd, &bptr[1]);
index 21ef8aa8b929b2b457bdb280192af5e0cf8fe631..82a37624684599d03adbf74561129b3afee9fcd7 100644 (file)
@@ -31,7 +31,7 @@
             Christian Thalinger
             Christian Ullrich
 
-   $Id: jit.c 5655 2006-10-03 20:44:46Z edwin $
+   $Id: jit.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -1697,7 +1697,7 @@ static u1 *jit_compile_intern(jitdata *jd)
           since they can change the basic block count. */
 
        if (JITDATA_HAS_FLAG_INSTRUMENT(jd))
-               code->bbfrequency = MNEW(u4, jd->new_basicblockcount);
+               code->bbfrequency = MNEW(u4, jd->basicblockcount);
 
        DEBUG_JIT_COMPILEVERBOSE("Generating code: ");
 
index cd3ec2a7f91ef44b991b6c4cf26d8416e683128b..3af0fcf838d8be03e56a19650840acb7149b03ca 100644 (file)
@@ -30,7 +30,7 @@
    Changes: Christian Thalinger
                        Edwin Steiner
 
-   $Id: jit.h 5633 2006-10-02 13:59:13Z edwin $
+   $Id: jit.h 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -113,14 +113,14 @@ struct jitdata {
        u4               flags;             /* contains JIT compiler flags        */
        bool             isleafmethod;      /* does method call subroutines       */
 
-       instruction     *new_instructions;
-       basicblock      *new_basicblocks;
-       s4              *new_basicblockindex;
-       stackelement    *new_stack;
-       s4               new_instructioncount;
-       s4               new_basicblockcount;
-       s4               new_stackcount;
-       s4               new_c_debug_nr;
+       instruction     *instructions;
+       basicblock      *basicblocks;
+       s4              *basicblockindex;
+       stackelement    *stack;
+       s4               instructioncount;
+       s4               basicblockcount;
+       s4               stackcount;
+       s4               c_debug_nr;
 
        varinfo *var;
        s4      vartop;
index 58702a8b5d1c3a57d352ab6bf193f5b481c422a6..92766135484448b8733e076f211859a8ee734540 100644 (file)
@@ -35,7 +35,7 @@
    This module generates MIPS machine code for a sequence of
    intermediate code commands (ICMDs).
 
-   $Id: codegen.c 5641 2006-10-03 16:32:15Z edwin $
+   $Id: codegen.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -322,7 +322,7 @@ bool codegen(jitdata *jd)
 
        /* walk through all basic blocks */
 
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
 
                /* handle replacement points */
 
index c3b8687d02659dd6f5b59888bd73cf9317e7b668..ffedf17a726c417fb6656c4e1d47795b12cc0c18 100644 (file)
@@ -31,7 +31,7 @@
             Joseph Wenninger
             Christian Thalinger
 
-   $Id: parse.c 5655 2006-10-03 20:44:46Z edwin $
+   $Id: parse.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -99,10 +99,10 @@ static void parse_setup(jitdata *jd, parsedata_t *pd)
        /* Allocate instruction array and block index table (1 additional
           for end ipc). */
 
-       jd->new_basicblockindex = DMNEW(s4, m->jcodelength + 1);
+       jd->basicblockindex = DMNEW(s4, m->jcodelength + 1);
        pd->instructionstart = DMNEW(u1, m->jcodelength + 1);
 
-       MZERO(jd->new_basicblockindex, s4, m->jcodelength + 1);
+       MZERO(jd->basicblockindex, s4, m->jcodelength + 1);
        MZERO(pd->instructionstart, u1, m->jcodelength + 1);
 
        /* Set the length of the instruction array.  We simply add 5 more
@@ -369,7 +369,7 @@ fetch_opcode:
                           for basic block reordering (may be replaced with a GOTO
                           later). */
 
-                       if (jd->new_basicblockindex[p] & 1) {
+                       if (jd->basicblockindex[p] & 1) {
                                INSTRUCTIONS_CHECK(1);
                                OP(ICMD_NOP);
                        }
@@ -377,7 +377,7 @@ fetch_opcode:
 
                /* store intermediate instruction count (bit 0 mark block starts) */
 
-               jd->new_basicblockindex[p] |= (ipc << 1);
+               jd->basicblockindex[p] |= (ipc << 1);
 
                /* compute next instruction start */
 
@@ -1447,37 +1447,37 @@ invoke_method:
 
        /* adjust block count if target 0 is not first intermediate instruction */
 
-       if (!jd->new_basicblockindex[0] || (jd->new_basicblockindex[0] > 1))
+       if (!jd->basicblockindex[0] || (jd->basicblockindex[0] > 1))
                b_count++;
 
        /* copy local to method variables */
 
-       jd->new_instructions = pd.instructions;
-       jd->new_instructioncount = ipc;
-       jd->new_basicblockcount = b_count;
-       jd->new_stackcount = s_count + jd->new_basicblockcount * m->maxstack; /* in-stacks */
+       jd->instructions = pd.instructions;
+       jd->instructioncount = ipc;
+       jd->basicblockcount = b_count;
+       jd->stackcount = s_count + jd->basicblockcount * m->maxstack; /* in-stacks */
 
        /* allocate stack table */
 
-       jd->new_stack = DMNEW(stackelement, jd->new_stackcount);
+       jd->stack = DMNEW(stackelement, jd->stackcount);
 
        /* build basic block list */
 
-       bptr = jd->new_basicblocks = DMNEW(basicblock, b_count + 1);    /* one more for end ipc */
+       bptr = jd->basicblocks = DMNEW(basicblock, b_count + 1);    /* one more for end ipc */
 
        /* zero out all basic block structures */
 
        MZERO(bptr, basicblock, b_count + 1);
 
        b_count = 0;
-       jd->new_c_debug_nr = 0;
+       jd->c_debug_nr = 0;
 
        /* additional block if target 0 is not first intermediate instruction */
 
-       if (!jd->new_basicblockindex[0] || (jd->new_basicblockindex[0] > 1)) {
+       if (!jd->basicblockindex[0] || (jd->basicblockindex[0] > 1)) {
                BASICBLOCK_INIT(bptr, m);
 
-               bptr->iinstr = jd->new_instructions;
+               bptr->iinstr = jd->instructions;
                /* bptr->icount is set when the next block is allocated */
 
                bptr++;
@@ -1488,7 +1488,7 @@ invoke_method:
        /* allocate blocks */
 
        for (p = 0; p < m->jcodelength; p++) {
-               if (jd->new_basicblockindex[p] & 1) {
+               if (jd->basicblockindex[p] & 1) {
 #if defined(ENABLE_VERIFIER)
                        /* Check if this block starts at the beginning of an
                           instruction. */
@@ -1504,13 +1504,13 @@ invoke_method:
 
                        BASICBLOCK_INIT(bptr, m);
 
-                       bptr->iinstr = jd->new_instructions + (jd->new_basicblockindex[p] >> 1);
+                       bptr->iinstr = jd->instructions + (jd->basicblockindex[p] >> 1);
                        if (b_count) {
                                bptr[-1].icount = bptr->iinstr - bptr[-1].iinstr;
                        }
                        /* bptr->icount is set when the next block is allocated */
 
-                       jd->new_basicblockindex[p] = b_count;
+                       jd->basicblockindex[p] = b_count;
 
                        bptr++;
                        b_count++;
@@ -1521,7 +1521,7 @@ invoke_method:
        /* set instruction count of last real block */
 
        if (b_count) {
-               bptr[-1].icount = (jd->new_instructions + jd->new_instructioncount) - bptr[-1].iinstr;
+               bptr[-1].icount = (jd->instructions + jd->instructioncount) - bptr[-1].iinstr;
        }
 
        /* allocate additional block at end */
@@ -1536,26 +1536,26 @@ invoke_method:
 
        for (i = 0; i < cd->exceptiontablelength; ++i) {
                p = cd->exceptiontable[i].startpc;
-               cd->exceptiontable[i].start = jd->new_basicblocks + jd->new_basicblockindex[p];
+               cd->exceptiontable[i].start = jd->basicblocks + jd->basicblockindex[p];
 
                p = cd->exceptiontable[i].endpc;
-               cd->exceptiontable[i].end = (p == m->jcodelength) ? (jd->new_basicblocks + jd->new_basicblockcount /*+ 1*/) : (jd->new_basicblocks + jd->new_basicblockindex[p]);
+               cd->exceptiontable[i].end = (p == m->jcodelength) ? (jd->basicblocks + jd->basicblockcount /*+ 1*/) : (jd->basicblocks + jd->basicblockindex[p]);
 
                p = cd->exceptiontable[i].handlerpc;
-               cd->exceptiontable[i].handler = jd->new_basicblocks + jd->new_basicblockindex[p];
+               cd->exceptiontable[i].handler = jd->basicblocks + jd->basicblockindex[p];
        }
 
        /* XXX activate this if you want to try inlining */
 #if 0
        for (i = 0; i < m->exceptiontablelength; ++i) {
                p = m->exceptiontable[i].startpc;
-               m->exceptiontable[i].start = jd->new_basicblocks + jd->new_basicblockindex[p];
+               m->exceptiontable[i].start = jd->basicblocks + jd->basicblockindex[p];
 
                p = m->exceptiontable[i].endpc;
-               m->exceptiontable[i].end = (p == m->jcodelength) ? (jd->new_basicblocks + jd->new_basicblockcount /*+ 1*/) : (jd->new_basicblocks + jd->new_basicblockindex[p]);
+               m->exceptiontable[i].end = (p == m->jcodelength) ? (jd->basicblocks + jd->basicblockcount /*+ 1*/) : (jd->basicblocks + jd->basicblockindex[p]);
 
                p = m->exceptiontable[i].handlerpc;
-               m->exceptiontable[i].handler = jd->new_basicblocks + jd->new_basicblockindex[p];
+               m->exceptiontable[i].handler = jd->basicblocks + jd->basicblockindex[p];
        }
 #endif
 
@@ -1587,7 +1587,7 @@ invoke_method:
 
                jd->varcount = 
                          nlocals                                      /* local variables */
-                       + jd->new_basicblockcount * m->maxstack                 /* invars */
+                       + jd->basicblockcount * m->maxstack                 /* invars */
                        + s_count;         /* variables created within blocks (non-invar) */
 
                /* reserve the first indices for local variables */
index 0394f29d5a78d3f4dd89cfa48597007eb31a29f4..b2346e08e14c40c9986eae509cf092bab3d9edfc 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: parse.h 5655 2006-10-03 20:44:46Z edwin $
+   $Id: parse.h 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -93,9 +93,9 @@
 
 #define MARK_BASICBLOCK(i)                                           \
     do {                                                             \
-        if (!(jd->new_basicblockindex[(i)] & 1)) {                   \
+        if (!(jd->basicblockindex[(i)] & 1)) {                   \
             b_count++;                                               \
-            jd->new_basicblockindex[(i)] |= 1;                       \
+            jd->basicblockindex[(i)] |= 1;                       \
         }                                                            \
     } while (0)
 
index bf00a3ccf88c545c44eb6267dd5a69c8698d0b89..21780ea989013b4ded008ba48322cad74de41dfe 100644 (file)
@@ -31,7 +31,7 @@
             Christian Ullrich
             Edwin Steiner
 
-   $Id: codegen.c 5650 2006-10-03 18:50:52Z edwin $
+   $Id: codegen.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -397,7 +397,7 @@ bool codegen(jitdata *jd)
 
        /* walk through all basic blocks */
 
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
 
                bptr->mpc = (s4) (cd->mcodeptr - cd->mcodebase);
 
index 9f048dc5c0ef64c009952ab8c1b2970cec096c7c..4277f459b6461265073152e15d023d9b618a364f 100644 (file)
@@ -31,7 +31,7 @@
             Christian Ullrich
             Edwin Steiner
 
-   $Id: codegen.c 5651 2006-10-03 19:11:19Z edwin $
+   $Id: codegen.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -367,7 +367,7 @@ bool codegen(jitdata *jd)
        replacementpoint = jd->code->rplpoints;
 
        /* walk through all basic blocks */
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
 
                bptr->mpc = (s4) (cd->mcodeptr - cd->mcodebase);
 
index 71cde96bd14f30b667d79908a8d50b6e81fa55b2..181540ffaa5fa9aa9711f66f16fd5c6b63a4666a 100644 (file)
@@ -55,9 +55,9 @@ static basicblock *reorder_place_next_unplaced_block(jitdata *jd, u1 *blocks,
        basicblock *tbptr;
        s4          i;
 
-       for (i = 0; i < jd->new_basicblockcount; i++) {
+       for (i = 0; i < jd->basicblockcount; i++) {
                if (blocks[i] == false) {
-                       tbptr = &jd->new_basicblocks[i];
+                       tbptr = &jd->basicblocks[i];
 
                        /* place the block */
 
@@ -111,19 +111,19 @@ bool reorder(jitdata *jd)
        pcode = m->code;
 
        /* XXX debug */
-       if (jd->new_basicblockcount > 8)
+       if (jd->basicblockcount > 8)
                return true;
 
        /* allocate flag array for blocks which are placed */
 
-       blocks = DMNEW(u1, jd->new_basicblockcount);
+       blocks = DMNEW(u1, jd->basicblockcount);
 
-       MZERO(blocks, u1, jd->new_basicblockcount);
+       MZERO(blocks, u1, jd->basicblockcount);
 
        /* Get the entry block and iterate over all basic blocks until we
           have placed all blocks. */
 
-       bptr   = jd->new_basicblocks;
+       bptr   = jd->basicblocks;
        placed = 0;
 
        /* the first block is always placed as the first one */
@@ -131,7 +131,7 @@ bool reorder(jitdata *jd)
        blocks[0] = true;
        placed++;
 
-       while (placed <= jd->new_basicblockcount + 1) {
+       while (placed <= jd->basicblockcount + 1) {
                /* get last instruction of basic block */
 
                iptr = bptr->iinstr + bptr->icount - 1;
@@ -369,11 +369,11 @@ bool reorder(jitdata *jd)
 
        /* close the basic block chain with the last dummy basic block */
 
-       bptr->next = &jd->new_basicblocks[jd->new_basicblockcount];
+       bptr->next = &jd->basicblocks[jd->basicblockcount];
 
        puts("");
 
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
                printf("L%03d\n", bptr->nr);
        }
 
index 3f68ff1d2c26da0b875bc067a0629dbc0cb07a09..95ae893a23571c8d0cae329796645416d9271b3b 100644 (file)
@@ -121,7 +121,7 @@ bool replace_create_replacement_points(jitdata *jd)
        count = 0;
        alloccount = 0;
 
-       for (bptr = jd->new_basicblocks; bptr; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr; bptr = bptr->next) {
                if (!(bptr->bitflags & BBFLAG_REPLACEMENT))
                        continue;
 
@@ -200,7 +200,7 @@ bool replace_create_replacement_points(jitdata *jd)
 
        rp = rplpoints;
 
-       for (bptr = jd->new_basicblocks; bptr; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr; bptr = bptr->next) {
                if (!(bptr->bitflags & BBFLAG_REPLACEMENT))
                        continue;
 
index 21c358112ba9867d6500e6aeb30e504b9ffe4c01..72e1a8f9567ade3c6356be04242d18cca374c119 100644 (file)
@@ -160,7 +160,7 @@ void show_method(jitdata *jd, int stage)
 
        /* get the last basic block */
 
-       for (lastbptr = jd->new_basicblocks; lastbptr->next != NULL; lastbptr = lastbptr->next);
+       for (lastbptr = jd->basicblocks; lastbptr->next != NULL; lastbptr = lastbptr->next);
 
        printf("\n");
 
@@ -169,9 +169,9 @@ void show_method(jitdata *jd, int stage)
        printf("\n(NEW INSTRUCTION FORMAT)\n");
        if (jd->isleafmethod)
                printf("LEAFMETHOD\n");
-       printf("\nBasic blocks: %d\n", jd->new_basicblockcount);
+       printf("\nBasic blocks: %d\n", jd->basicblockcount);
        if (stage >= SHOW_CODE) {
-               printf("Code length:  %d\n", (lastbptr->mpc - jd->new_basicblocks[0].mpc));
+               printf("Code length:  %d\n", (lastbptr->mpc - jd->basicblocks[0].mpc));
                printf("Data length:  %d\n", cd->dseglen);
                printf("Stub length:  %d\n", (s4) (code->mcodelength -
                                                                                   ((ptrint) cd->dseglen + lastbptr->mpc)));
@@ -338,7 +338,7 @@ void show_method(jitdata *jd, int stage)
        if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd)) {
                u1ptr = (u1 *) ((ptrint) code->mcode + cd->dseglen);
 
-               for (; u1ptr < (u1 *) ((ptrint) code->mcode + cd->dseglen + jd->new_basicblocks[0].mpc);)
+               for (; u1ptr < (u1 *) ((ptrint) code->mcode + cd->dseglen + jd->basicblocks[0].mpc);)
                        DISASSINSTR(u1ptr);
 
                printf("\n");
@@ -347,7 +347,7 @@ void show_method(jitdata *jd, int stage)
 
        /* show code of all basic blocks */
 
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next)
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next)
                show_basicblock(jd, bptr, stage);
 
 #if defined(ENABLE_DISASSEMBLER)
@@ -511,7 +511,7 @@ void show_basicblock(jitdata *jd, basicblock *bptr, int stage)
         }                                                            \
         else if (stage >= SHOW_PARSE) {                              \
             printf("--> insindex %d (L%03d) ", (target).insindex,    \
-                jd->new_basicblocks[jd->new_basicblockindex[         \
+                jd->basicblocks[jd->basicblockindex[         \
                 (target).insindex]].nr);                             \
         }                                                            \
         else {                                                       \
index 5aa1376d558d78cc3b0607fcd18b0be4abbe759b..489fb62fba57ca5a5f91aa24a3c57238e3124789 100644 (file)
@@ -255,7 +255,7 @@ bool codegen(jitdata *jd)
 
        /* walk through all basic blocks */
 
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
 
                bptr->mpc = (s4) (cd->mcodeptr - cd->mcodebase);
 
index 6e46c43e5eb83dd876af48b31533cc3f90b71998..f965431f990a06e7f95cfd6d07ba788f42485fdf 100644 (file)
@@ -30,7 +30,7 @@
             Christian Thalinger
             Christian Ullrich
 
-   $Id: stack.c 5655 2006-10-03 20:44:46Z edwin $
+   $Id: stack.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -576,7 +576,7 @@ static void stack_append_block(stackdata_t *sd, basicblock *b)
        b->next = sd->last_real_block->next;
        sd->last_real_block->next = b;
        sd->last_real_block = b;
-       sd->jd->new_basicblockcount++;
+       sd->jd->basicblockcount++;
 }
 
 
@@ -1856,7 +1856,7 @@ bool stack_analyse(jitdata *jd)
        /* find the last real basic block */
        
        sd.last_real_block = NULL;
-       tbptr = jd->new_basicblocks;
+       tbptr = jd->basicblocks;
        while (tbptr->next) {
                sd.last_real_block = tbptr;
                tbptr = tbptr->next;
@@ -1880,12 +1880,12 @@ bool stack_analyse(jitdata *jd)
 
        /* initialize flags and invars (none) of first block */
 
-       jd->new_basicblocks[0].flags = BBREACHED;
-       jd->new_basicblocks[0].invars = NULL;
-       jd->new_basicblocks[0].indepth = 0;
-       jd->new_basicblocks[0].inlocals = 
+       jd->basicblocks[0].flags = BBREACHED;
+       jd->basicblocks[0].invars = NULL;
+       jd->basicblocks[0].indepth = 0;
+       jd->basicblocks[0].inlocals = 
                DMNEW(varinfo, jd->localcount + VERIFIER_EXTRA_LOCALS);
-       MCOPY(jd->new_basicblocks[0].inlocals, jd->var, varinfo, 
+       MCOPY(jd->basicblocks[0].inlocals, jd->var, varinfo, 
                        jd->localcount + VERIFIER_EXTRA_LOCALS);
 
        /* stack analysis loop (until fixpoint reached) **************************/
@@ -1897,7 +1897,7 @@ bool stack_analyse(jitdata *jd)
 
                /* initialize loop over basic blocks */
 
-               sd.bptr = jd->new_basicblocks;
+               sd.bptr = jd->basicblocks;
                superblockend = true;
                sd.repeat = false;
                curstack = NULL; stackdepth = 0;
@@ -1975,7 +1975,7 @@ bool stack_analyse(jitdata *jd)
 
                                /* reset the new pointer for allocating stackslots */
 
-                               sd.new = jd->new_stack;
+                               sd.new = jd->stack;
 
                                /* create the instack of this block */
 
@@ -1992,7 +1992,7 @@ bool stack_analyse(jitdata *jd)
                                superblockend = false;
                                len = sd.bptr->icount;
                                iptr = sd.bptr->iinstr;
-                               b_index = sd.bptr - jd->new_basicblocks;
+                               b_index = sd.bptr - jd->basicblocks;
 
                                /* mark the block as analysed */
 
@@ -4404,18 +4404,18 @@ icmd_BUILTIN:
 
 #if defined(ENABLE_STATISTICS)
        if (opt_stat) {
-               if (jd->new_basicblockcount > count_max_basic_blocks)
-                       count_max_basic_blocks = jd->new_basicblockcount;
-               count_basic_blocks += jd->new_basicblockcount;
-               if (jd->new_instructioncount > count_max_javainstr)
-                       count_max_javainstr = jd->new_instructioncount;
-               count_javainstr += jd->new_instructioncount;
-               if (jd->new_stackcount > count_upper_bound_new_stack)
-                       count_upper_bound_new_stack = jd->new_stackcount;
-               if ((sd.new - jd->new_stack) > count_max_new_stack)
-                       count_max_new_stack = (sd.new - jd->new_stack);
-
-               sd.bptr = jd->new_basicblocks;
+               if (jd->basicblockcount > count_max_basic_blocks)
+                       count_max_basic_blocks = jd->basicblockcount;
+               count_basic_blocks += jd->basicblockcount;
+               if (jd->instructioncount > count_max_javainstr)
+                       count_max_javainstr = jd->instructioncount;
+               count_javainstr += jd->instructioncount;
+               if (jd->stackcount > count_upper_bound_new_stack)
+                       count_upper_bound_new_stack = jd->stackcount;
+               if ((sd.new - jd->stack) > count_max_new_stack)
+                       count_max_new_stack = (sd.new - jd->stack);
+
+               sd.bptr = jd->basicblocks;
                for (; sd.bptr; sd.bptr = sd.bptr->next) {
                        if (sd.bptr->flags > BBREACHED) {
                                if (sd.bptr->indepth >= 10)
@@ -4455,21 +4455,21 @@ icmd_BUILTIN:
                else
                        count_analyse_iterations[4]++;
 
-               if (jd->new_basicblockcount <= 5)
+               if (jd->basicblockcount <= 5)
                        count_method_bb_distribution[0]++;
-               else if (jd->new_basicblockcount <= 10)
+               else if (jd->basicblockcount <= 10)
                        count_method_bb_distribution[1]++;
-               else if (jd->new_basicblockcount <= 15)
+               else if (jd->basicblockcount <= 15)
                        count_method_bb_distribution[2]++;
-               else if (jd->new_basicblockcount <= 20)
+               else if (jd->basicblockcount <= 20)
                        count_method_bb_distribution[3]++;
-               else if (jd->new_basicblockcount <= 30)
+               else if (jd->basicblockcount <= 30)
                        count_method_bb_distribution[4]++;
-               else if (jd->new_basicblockcount <= 40)
+               else if (jd->basicblockcount <= 40)
                        count_method_bb_distribution[5]++;
-               else if (jd->new_basicblockcount <= 50)
+               else if (jd->basicblockcount <= 50)
                        count_method_bb_distribution[6]++;
-               else if (jd->new_basicblockcount <= 75)
+               else if (jd->basicblockcount <= 75)
                        count_method_bb_distribution[7]++;
                else
                        count_method_bb_distribution[8]++;
index 97d7b220fe018c0454814a158d8323adca0a232c..37f4ee8c22dba473de314445ed3b0b00b91d52d2 100644 (file)
@@ -29,7 +29,7 @@
    Changes: Christian Ullrich
                        Edwin Steiner
 
-   $Id: stack.h 5655 2006-10-03 20:44:46Z edwin $
+   $Id: stack.h 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
 /* external macros ************************************************************/
 
 #define BLOCK_OF(index)                                              \
-    (jd->new_basicblocks + jd->new_basicblockindex[index])
+    (jd->basicblocks + jd->basicblockindex[index])
 
 
 /* function prototypes ********************************************************/
index 264a4f745aa2818e6953fcc948dea100c5952609..c22d1d1937935ddcaa45dd79f8e760f38ee56be6 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: typecheck.c 5655 2006-10-03 20:44:46Z edwin $
+   $Id: typecheck.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -2416,8 +2416,8 @@ bool typecheck(jitdata *jd)
        state.m = meth;
        state.jd = jd;
        state.cd = cd;
-       state.basicblockcount = jd->new_basicblockcount;
-       state.basicblocks = jd->new_basicblocks;
+       state.basicblockcount = jd->basicblockcount;
+       state.basicblocks = jd->basicblocks;
        state.savedindices = NULL;
        state.savedinvars = NULL;
 
index 28a13581617190c7ed4188ca41c2fe9fdd90e5da..44cec5dd54d35981641d09a1623fc226a2e27ecc 100644 (file)
@@ -30,7 +30,7 @@
    Changes: Christian Ullrich
             Edwin Steiner
 
-   $Id: codegen.c 5641 2006-10-03 16:32:15Z edwin $
+   $Id: codegen.c 5656 2006-10-03 20:57:15Z edwin $
 
 */
 
@@ -330,7 +330,7 @@ bool codegen(jitdata *jd)
 
        /* walk through all basic blocks */
 
-       for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next) {
+       for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next) {
 
                bptr->mpc = (u4) ((u1 *) cd->mcodeptr - cd->mcodebase);