* src/vm/method.h (vm/jit/code.h): Added.
[cacao.git] / src / vm / jit / loop / analyze.c
index a5c6d7b3042920e4d1f476720c62ffd63f629be7..77432136a45ad88a4f61c6f9212160324919b7c0 100644 (file)
@@ -34,7 +34,7 @@
    bounds are never violated. The function to call is
    optimize_loops().
 
-   $Id: analyze.c 4357 2006-01-22 23:33:38Z twisti $
+   $Id: analyze.c 4699 2006-03-28 14:52:32Z twisti $
 
 */
 
@@ -3581,12 +3581,27 @@ void optimize_single_loop(methodinfo *m, codegendata *cd, loopdata *ld, LoopCont
 }
 
 
-/*     This function preforms necessary setup work, before the recursive function
-       optimize_single loop can be called.
-*/
-void optimize_loops(methodinfo *m, codegendata *cd, loopdata *ld)
+/* optimize_loops **************************************************************
+
+   This function preforms necessary setup work, before the recursive
+   function optimize_single loop can be called.
+
+*******************************************************************************/
+
+void optimize_loops(jitdata *jd)
 {
-       LoopContainer *lc = ld->c_allLoops;
+       methodinfo    *m;
+       codegendata   *cd;
+       loopdata      *ld;
+       LoopContainer *lc;
+
+       /* get required compiler data */
+
+       m  = jd->m;
+       cd = jd->cd;
+       ld = jd->ld;
+
+       lc = ld->c_allLoops;
 
        /* first, merge loops with same header node - all loops with the same           */
        /* header node are optimizied in one pass, because they all depend on the       */