* src/vm/jit/arm/codegen.c (createcompilerstub): Don't generate a
authortwisti <none@none>
Sun, 28 Jan 2007 22:57:27 +0000 (22:57 +0000)
committertwisti <none@none>
Sun, 28 Jan 2007 22:57:27 +0000 (22:57 +0000)
codeinfo.

src/vm/jit/arm/codegen.c

index 03502848b1bc59c1b7ea39f9c833904330199d04..b405d93f227b391e172ecc8aeda6ec29862b4fda 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: codegen.c 7231 2007-01-22 11:45:34Z twisti $
+   $Id: codegen.c 7242 2007-01-28 22:57:27Z twisti $
 
 */
 
@@ -2788,7 +2788,6 @@ u1 *createcompilerstub(methodinfo *m)
 {
        u1          *s;                     /* memory to hold the stub            */
        ptrint      *d;
-       codeinfo    *code;
        codegendata *cd;
        s4           dumpsize;              /* code generation pointer            */
 
@@ -2806,14 +2805,12 @@ u1 *createcompilerstub(methodinfo *m)
        cd = DNEW(codegendata);
        cd->mcodeptr = s;
 
-       /* Store the codeinfo pointer in the same place as in the
-          methodheader for compiled methods. */
-
-       code = code_codeinfo_new(m);
-
+       /* The codeinfo pointer is actually a pointer to the
+          methodinfo. This fakes a codeinfo structure. */
+       
        d[0] = (ptrint) asm_call_jit_compiler;
        d[1] = (ptrint) m;
-       d[2] = (ptrint) code;
+       d[2] = (ptrint) &d[1];                                    /* fake code->m */
 
        /* code for the stub */