* src/vm/jit/powerpc64/codegen.c (createcompilerstub): Don't generate
authortwisti <none@none>
Mon, 4 Dec 2006 23:39:14 +0000 (23:39 +0000)
committertwisti <none@none>
Mon, 4 Dec 2006 23:39:14 +0000 (23:39 +0000)
a codeinfo.

src/vm/jit/powerpc64/codegen.c

index abbd78c8f4f21b201d3437d9747e3b612c68d2df..0d45669d7189b2a452aafbb9bfadad09ab346501 100644 (file)
@@ -1,4 +1,4 @@
-/* src/vm/jit/powerpc64/codegen.c - machine code generator for 32-bit PowerPC
+/* src/vm/jit/powerpc64/codegen.c - machine code generator for 64-bit PowerPC
 
    Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
 
    Authors: Andreas Krall
             Stefan Ring
-
-   Changes: Christian Thalinger
+            Christian Thalinger
             Christian Ullrich
             Edwin Steiner
-           Roland Lezuo
+            Roland Lezuo
 
-   $Id: codegen.c 6042 2006-11-22 18:18:09Z edwin $
+   $Id: codegen.c 6119 2006-12-04 23:39:14Z twisti $
 
 */
 
@@ -2958,7 +2957,6 @@ u1 *createcompilerstub(methodinfo *m)
 {
        u1          *s;                     /* memory to hold the stub            */
        ptrint      *d;
-       codeinfo    *code;
        codegendata *cd;
        s4           dumpsize;
 
@@ -2979,11 +2977,9 @@ u1 *createcompilerstub(methodinfo *m)
        /* Store the codeinfo pointer in the same place as in the
           methodheader for compiled methods. */
 
-       code = code_codeinfo_new(m);
-
        d[0] = (ptrint) asm_call_jit_compiler;
        d[1] = (ptrint) m;
-       d[2] = (ptrint) code;
+       d[2] = (ptrint) &d[1];                                    /* fake code->m */
 
        M_ALD_INTERN(REG_ITMP1, REG_PV, -2 * SIZEOF_VOID_P);
        M_ALD_INTERN(REG_PV, REG_PV, -3 * SIZEOF_VOID_P);