* src/vm/jit/asmpart.h (asm_wrapper_patcher): Renamed to
authortwisti <none@none>
Mon, 17 Jul 2006 11:48:38 +0000 (11:48 +0000)
committertwisti <none@none>
Mon, 17 Jul 2006 11:48:38 +0000 (11:48 +0000)
asm_patcher_wrapper.

* src/vm/jit/alpha/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/alpha/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/i386/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/i386/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/mips/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/mips/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/powerpc/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/powerpc/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/powerpc64/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/powerpc64/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/x86_64/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/x86_64/asmpart.S (asm_wrapper_patcher): Likewise.

13 files changed:
src/vm/jit/alpha/asmpart.S
src/vm/jit/alpha/codegen.c
src/vm/jit/asmpart.h
src/vm/jit/i386/asmpart.S
src/vm/jit/i386/codegen.c
src/vm/jit/mips/asmpart.S
src/vm/jit/mips/codegen.c
src/vm/jit/powerpc/asmpart.S
src/vm/jit/powerpc/codegen.c
src/vm/jit/powerpc64/asmpart.S
src/vm/jit/powerpc64/codegen.c
src/vm/jit/x86_64/asmpart.S
src/vm/jit/x86_64/codegen.c

index 46deb31d6e69b8b8c6d156ddb8199a4a53ef371b..a9401db905eee91b4c629abd9f0f0feac6926c66 100644 (file)
@@ -31,7 +31,7 @@
             Christian Thalinger
                Edwin Steiner
 
-   $Id: asmpart.S 5094 2006-07-10 13:51:38Z twisti $
+   $Id: asmpart.S 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -67,7 +67,7 @@
 
        .globl asm_abstractmethoderror
 
-       .globl asm_wrapper_patcher
+       .globl asm_patcher_wrapper
 
        .globl asm_replacement_out
        .globl asm_replacement_in
@@ -443,7 +443,7 @@ asm_abstractmethoderror:
        .end    asm_abstractmethoderror
 
 
-/* asm_wrapper_patcher *********************************************************
+/* asm_patcher_wrapper *********************************************************
 
    XXX
 
@@ -459,9 +459,9 @@ asm_abstractmethoderror:
 
 *******************************************************************************/
                
-       .ent    asm_wrapper_patcher
+       .ent    asm_patcher_wrapper
 
-asm_wrapper_patcher:
+asm_patcher_wrapper:
        lda     sp,-((2+12+27+4)*8)(sp) /* create stack frame                     */
 
        SAVE_RETURN_REGISTERS(0)      /* save 1 int/1 float return registers      */
@@ -473,8 +473,8 @@ asm_wrapper_patcher:
        stq     ra,(2+12+27+2)*8(sp)  /* save method return address (for leafs)   */
        stq     pv,(2+12+27+3)*8(sp)  /* save pv of calling java function         */
 
-       br      ra,L_asm_wrapper_patcher_load_gp
-L_asm_wrapper_patcher_load_gp:
+       br      ra,L_asm_patcher_wrapper_load_gp
+L_asm_patcher_wrapper_load_gp:
        ldgp    gp,0(ra)              /* load gp (it's not set correctly in jit)  */
 
        lda     a0,(2+12+27+4)*8(sp)  /* pass SP of patcher stub                  */
@@ -494,20 +494,20 @@ L_asm_wrapper_patcher_load_gp:
        ldq     pv,(2+12+27+3)*8(sp)  /* restore pv of calling java function      */
 
        ldq     itmp3,(0+2+12+27+4)*8(sp) /* get return value                     */
-       bne     itmp3,L_asm_wrapper_patcher_exception
+       bne     itmp3,L_asm_patcher_wrapper_exception
 
        ldq     itmp3,(5+2+12+27+4)*8(sp) /* get RA to JIT                        */
        lda     sp,(6+2+12+27+4)*8(sp) /* remove stack frame                      */
 
        jmp     zero,(itmp3)          /* jump to new patched code                 */
 
-L_asm_wrapper_patcher_exception:
+L_asm_patcher_wrapper_exception:
        mov     itmp3,xptr            /* get exception                            */
        ldq     xpc,(5+2+12+27+4)*8(sp) /* RA is xpc                              */
        lda     sp,(6+2+12+27+4)*8(sp) /* remove stack frame                      */
        br      L_asm_handle_exception
 
-       .end    asm_wrapper_patcher
+       .end    asm_patcher_wrapper
 
                
 /* asm_replacement_out *********************************************************
index e41e9ba32b1c6a9e5c11b761bf52865193b23db3..950459787f5a88208585d24d5340eda3b3cb58bd 100644 (file)
@@ -32,7 +32,7 @@
             Christian Ullrich
             Edwin Steiner
 
-   $Id: codegen.c 5125 2006-07-12 22:12:47Z twisti $
+   $Id: codegen.c 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -3891,7 +3891,7 @@ gen_method:
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_AST(REG_ITMP3, REG_SP, 0 * 8);
 
-                       disp = dseg_addaddress(cd, asm_wrapper_patcher);
+                       disp = dseg_addaddress(cd, asm_patcher_wrapper);
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_JMP(REG_ZERO, REG_ITMP3);
                }
@@ -4410,7 +4410,7 @@ u1 *createnativestub(functionptr f, jitdata *jd, methoddesc *nmd)
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_AST(REG_ITMP3, REG_SP, 0 * 8);
 
-                       disp = dseg_addaddress(cd, asm_wrapper_patcher);
+                       disp = dseg_addaddress(cd, asm_patcher_wrapper);
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_JMP(REG_ZERO, REG_ITMP3);
                }
index b96010eca0613c75eff6c09f66c5541418617fd3..9d74b0592c7b2c4aa56084a9c2943dfa743e80d8 100644 (file)
@@ -30,7 +30,7 @@
    Changes: Christian Thalinger
             Edwin Steiner
 
-   $Id: asmpart.h 5053 2006-06-28 19:11:20Z twisti $
+   $Id: asmpart.h 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -141,7 +141,7 @@ void asm_handle_nat_exception(void);
 void asm_abstractmethoderror(void);
 
 /* wrapper for code patching functions */
-void asm_wrapper_patcher(void);
+void asm_patcher_wrapper(void);
 
 /* functions for on-stack replacement */
 void asm_replacement_out(void);
index eb47e07c47fc322cbf9b9de17382331f2497250e..af90df2e3c637d38eea516f945ab868a010b75f2 100644 (file)
@@ -31,7 +31,7 @@
    Changes: Joseph Wenninger
             Edwin Steiner
 
-   $Id: asmpart.S 5109 2006-07-11 19:17:23Z twisti $
+   $Id: asmpart.S 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -67,7 +67,7 @@
 
        .globl asm_abstractmethoderror
 
-       .globl asm_wrapper_patcher
+       .globl asm_patcher_wrapper
 
        .globl asm_replacement_out
        .globl asm_replacement_in
@@ -453,7 +453,7 @@ asm_abstractmethoderror:
        jmp     L_asm_handle_exception
 
 
-/* asm_wrapper_patcher *********************************************************
+/* asm_patcher_wrapper *********************************************************
 
    XXX
 
@@ -468,7 +468,7 @@ asm_abstractmethoderror:
 
 *******************************************************************************/
 
-asm_wrapper_patcher:
+asm_patcher_wrapper:
        sub     $((2+4)*4),sp               /* create stack frame                 */
 
        mov     itmp1,(0+4)*4(sp)           /* save itmp1 and itmp2               */
@@ -489,11 +489,11 @@ asm_wrapper_patcher:
        add     $((6+2+4)*4),sp             /* remove stack frame, keep RA        */
 
        test    itmp3,itmp3                 /* exception thrown?                  */
-       jne     L_asm_wrapper_patcher_exception
+       jne     L_asm_patcher_wrapper_exception
 
        ret                                 /* jump to new patched code           */
 
-L_asm_wrapper_patcher_exception:
+L_asm_patcher_wrapper_exception:
        mov     itmp3,xptr                  /* get exception                      */
        pop     xpc                         /* get and remove return address      */
        jmp     L_asm_handle_exception
index 7b99717077f07376775e67cc5d35a276a6887be2..743ad419386921e8e7e1d126b9c337a37d2827d5 100644 (file)
@@ -31,7 +31,7 @@
             Christian Ullrich
                        Edwin Steiner
 
-   $Id: codegen.c 5124 2006-07-12 21:59:24Z twisti $
+   $Id: codegen.c 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -4276,7 +4276,7 @@ gen_method:
                        M_PUSH_IMM(pref->ref);
                        M_PUSH_IMM(pref->patcher);
 
-                       M_MOV_IMM(asm_wrapper_patcher, REG_ITMP3);
+                       M_MOV_IMM(asm_patcher_wrapper, REG_ITMP3);
                        M_JMP(REG_ITMP3);
                }
        }
@@ -4737,14 +4737,14 @@ u1 *createnativestub(functionptr f, jitdata *jd, methoddesc *nmd)
                        M_PUSH_IMM(pref->ref);
                        M_PUSH_IMM(pref->patcher);
 
-                       M_MOV_IMM(asm_wrapper_patcher, REG_ITMP3);
+                       M_MOV_IMM(asm_patcher_wrapper, REG_ITMP3);
                        M_JMP(REG_ITMP3);
                }
        }
 
        codegen_finish(jd);
 
-       return jd->code->entrypoint;
+       return code->entrypoint;
 }
 
 
index dcd0dd8576668fc0bffc3b5166377eb33de9541b..85062f38b4d80e2e771f08b6a64c338bed543a7a 100644 (file)
@@ -29,7 +29,7 @@
    Changes: Christian Thalinger
             Edwin Steiner
 
-   $Id: asmpart.S 5063 2006-07-02 10:42:03Z twisti $
+   $Id: asmpart.S 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -64,7 +64,7 @@
 
        .globl asm_abstractmethoderror
 
-       .globl asm_wrapper_patcher
+       .globl asm_patcher_wrapper
 
        .globl asm_replacement_out
        .globl asm_replacement_in
@@ -474,7 +474,7 @@ asm_abstractmethoderror:
        b       asm_handle_nat_exception
 
 
-/* asm_wrapper_patcher *********************************************************
+/* asm_patcher_wrapper *********************************************************
 
    XXX
 
@@ -488,9 +488,9 @@ asm_abstractmethoderror:
 
 *******************************************************************************/
                
-    .ent    asm_wrapper_patcher
+    .ent    asm_patcher_wrapper
 
-asm_wrapper_patcher:
+asm_patcher_wrapper:
        aaddiu  sp,sp,-((2+16+22+4)*8+sizestackframeinfo) /* create stack frame   */
 
        SAVE_RETURN_REGISTERS(0)      /* save 1 int/1 float return registers      */
@@ -529,14 +529,14 @@ asm_wrapper_patcher:
        ald     pv,(2+16+22+3)*8(sp)  /* restore pv of calling java function      */
 
        ald     itmp3,((0+2+16+22+4)*8+sizestackframeinfo)(sp) /* get return value*/
-       beqz    itmp3,L_asm_wrapper_patcher_exception
+       beqz    itmp3,L_asm_patcher_wrapper_exception
 
        ald     itmp3,((5+2+16+22+4)*8+sizestackframeinfo)(sp) /* get RA to JIT   */
        aaddiu  sp,sp,((6+2+16+22+4)*8+sizestackframeinfo) /* remove stack frame  */
 
        jr      itmp3                 /* jump to new patched code                 */
 
-L_asm_wrapper_patcher_exception:
+L_asm_patcher_wrapper_exception:
        ald     xpc,((5+2+16+22+4)*8+sizestackframeinfo)(sp) /* RA to JIT is xpc  */
        aaddiu  sp,sp,((6+2+16+22+4)*8+sizestackframeinfo) /* remove stack frame  */
 
@@ -557,7 +557,7 @@ L_asm_wrapper_patcher_exception:
        sd      zero,0(v0)            /* clear the exception pointer              */
        b       asm_handle_exception
 
-       .end    asm_wrapper_patcher
+       .end    asm_patcher_wrapper
 
                
 /* asm_replacement_out *********************************************************
index 06d2206f6ff0eaf2241c35beeabab4d1f21f7e1f..f23ec702f5123510fccce327cb472d2e325f2c8d 100644 (file)
@@ -35,7 +35,7 @@
    This module generates MIPS machine code for a sequence of
    intermediate code commands (ICMDs).
 
-   $Id: codegen.c 5127 2006-07-13 10:26:38Z twisti $
+   $Id: codegen.c 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -3894,7 +3894,7 @@ gen_method:
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_AST(REG_ITMP3, REG_SP, 0 * 8);
 
-                       disp = dseg_addaddress(cd, asm_wrapper_patcher);
+                       disp = dseg_addaddress(cd, asm_patcher_wrapper);
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_JMP(REG_ITMP3);
                        M_NOP;
@@ -4421,7 +4421,7 @@ u1 *createnativestub(functionptr f, jitdata *jd, methoddesc *nmd)
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_AST(REG_ITMP3, REG_SP, 0 * 8);
 
-                       disp = dseg_addaddress(cd, asm_wrapper_patcher);
+                       disp = dseg_addaddress(cd, asm_patcher_wrapper);
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_JMP(REG_ITMP3);
                        M_NOP;
@@ -4430,7 +4430,7 @@ u1 *createnativestub(functionptr f, jitdata *jd, methoddesc *nmd)
 
        codegen_finish(jd);
 
-       return jd->code->entrypoint;
+       return code->entrypoint;
 }
 
 
index 4e32960cfc4ef09394ce232c3e5f51c84d939ae5..2e0d229d51881549edd23f7bdf84345644f5b28f 100644 (file)
@@ -31,7 +31,7 @@
    Changes: Christian Thalinger
             Edwin Steiner
 
-   $Id: asmpart.S 5084 2006-07-06 22:52:23Z twisti $
+   $Id: asmpart.S 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -68,7 +68,7 @@
 
        .globl asm_abstractmethoderror
 
-       .globl asm_wrapper_patcher
+       .globl asm_patcher_wrapper
 
        .globl asm_replacement_out
        .globl asm_replacement_in
@@ -986,7 +986,7 @@ asm_abstractmethoderror:
        b       L_asm_handle_nat_exception
 
 
-/* asm_wrapper_patcher *********************************************************
+/* asm_patcher_wrapper *********************************************************
 
    XXX
 
@@ -1000,7 +1000,7 @@ asm_abstractmethoderror:
 
 *******************************************************************************/
 
-asm_wrapper_patcher:
+asm_patcher_wrapper:
        mflr    r0                    /* get Java return address (leaf)           */
        stw     r0,6*4(sp)            /* store it in the stub stackframe          */
                                      /* keep stack 16-bytes aligned: 6+1+37 = 44 */
@@ -1113,7 +1113,7 @@ asm_wrapper_patcher:
        mtlr    r0
 
        mr.     itmp3,itmp3           /* check for an exception                   */
-       bne     L_asm_wrapper_patcher_exception
+       bne     L_asm_patcher_wrapper_exception
 
                                      /* get return address (into JIT code)       */
        lwz     itmp3,(5+LA_WORD_SIZE+5+58)*4(sp)
@@ -1124,7 +1124,7 @@ asm_wrapper_patcher:
        mtctr   itmp3
        bctr                          /* jump to new patched code                 */
 
-L_asm_wrapper_patcher_exception:
+L_asm_patcher_wrapper_exception:
        mr      xptr,itmp3                  /* get exception                      */
        lwz     xpc,(5+LA_WORD_SIZE+5+58)*4(sp)
        addi    sp,sp,(8+LA_WORD_SIZE+5+58)*4
index 529b640d8c78359e7d8cbeb0899bfc859db498f8..18271754248e7693f481e07d224947c4c0b61892 100644 (file)
@@ -31,7 +31,7 @@
             Christian Ullrich
             Edwin Steiner
 
-   $Id: codegen.c 5129 2006-07-13 11:54:16Z twisti $
+   $Id: codegen.c 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -3631,7 +3631,7 @@ gen_method:
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_AST_INTERN(REG_ITMP3, REG_SP, 0 * 4);
 
-                       disp = dseg_addaddress(cd, asm_wrapper_patcher);
+                       disp = dseg_addaddress(cd, asm_patcher_wrapper);
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_MTCTR(REG_ITMP3);
                        M_RTS;
@@ -4185,7 +4185,7 @@ u1 *createnativestub(functionptr f, jitdata *jd, methoddesc *nmd)
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_AST(REG_ITMP3, REG_SP, 0 * 4);
 
-                       disp = dseg_addaddress(cd, asm_wrapper_patcher);
+                       disp = dseg_addaddress(cd, asm_patcher_wrapper);
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_MTCTR(REG_ITMP3);
                        M_RTS;
@@ -4194,7 +4194,7 @@ u1 *createnativestub(functionptr f, jitdata *jd, methoddesc *nmd)
 
        codegen_finish(jd);
 
-       return jd->code->entrypoint;
+       return code->entrypoint;
 }
 
 
index ae9a00fa208ff8f8a9654c048f6ac6460e1c5bc4..040229afa875b184dacb95d8b7533af88e8d7511 100644 (file)
@@ -31,7 +31,7 @@
    Changes: Christian Thalinger
             Edwin Steiner
 
-   $Id: asmpart.S 5081 2006-07-06 13:59:01Z tbfg $
+   $Id: asmpart.S 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -68,7 +68,7 @@
 
        .globl asm_abstractmethoderror
 
-       .globl asm_wrapper_patcher
+       .globl asm_patcher_wrapper
 
        .globl asm_replacement_out
        .globl asm_replacement_in
@@ -986,7 +986,7 @@ asm_abstractmethoderror:
        b       L_asm_handle_nat_exception
 
 
-/* asm_wrapper_patcher *********************************************************
+/* asm_patcher_wrapper *********************************************************
 
    XXX
 
@@ -1000,7 +1000,7 @@ asm_abstractmethoderror:
 
 *******************************************************************************/
 
-asm_wrapper_patcher:
+asm_patcher_wrapper:
        mflr    r0                    /* get Java return address (leaf)           */
        stw     r0,6*4(sp)            /* store it in the stub stackframe          */
                                      /* keep stack 16-bytes aligned: 6+1+37 = 44 */
@@ -1113,7 +1113,7 @@ asm_wrapper_patcher:
        mtlr    r0
 
        mr.     itmp3,itmp3           /* check for an exception                   */
-       bne     L_asm_wrapper_patcher_exception
+       bne     L_asm_patcher_wrapper_exception
 
                                      /* get return address (into JIT code)       */
        lwz     itmp3,(5+LA_WORD_SIZE+5+58)*4(sp)
@@ -1124,7 +1124,7 @@ asm_wrapper_patcher:
        mtctr   itmp3
        bctr                          /* jump to new patched code                 */
 
-L_asm_wrapper_patcher_exception:
+L_asm_patcher_wrapper_exception:
        mr      xptr,itmp3                  /* get exception                      */
        lwz     xpc,(5+LA_WORD_SIZE+5+58)*4(sp)
        addi    sp,sp,(8+LA_WORD_SIZE+5+58)*4
index 8e02f97c3b82dc1f9773b0772cc1f00144dd12b0..874b22aff0ff574a18488c0b8f1e087d315688d3 100644 (file)
@@ -31,7 +31,7 @@
             Christian Ullrich
             Edwin Steiner
 
-   $Id: codegen.c 5082 2006-07-06 14:10:23Z tbfg $
+   $Id: codegen.c 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -3583,7 +3583,7 @@ gen_method:
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_AST_INTERN(REG_ITMP3, REG_SP, 0 * 4);
 
-                       disp = dseg_addaddress(cd, asm_wrapper_patcher);
+                       disp = dseg_addaddress(cd, asm_patcher_wrapper);
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_MTCTR(REG_ITMP3);
                        M_RTS;
@@ -4137,7 +4137,7 @@ u1 *createnativestub(functionptr f, jitdata *jd, methoddesc *nmd)
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_AST(REG_ITMP3, REG_SP, 0 * 4);
 
-                       disp = dseg_addaddress(cd, asm_wrapper_patcher);
+                       disp = dseg_addaddress(cd, asm_patcher_wrapper);
                        M_ALD(REG_ITMP3, REG_PV, disp);
                        M_MTCTR(REG_ITMP3);
                        M_RTS;
@@ -4146,7 +4146,7 @@ u1 *createnativestub(functionptr f, jitdata *jd, methoddesc *nmd)
 
        codegen_finish(jd);
 
-       return jd->code->entrypoint;
+       return code->entrypoint;
 }
 
 
index 53d2e00c9dab4473050338e54ebac265bb385df7..ad4650b07bded6623bbc394f7954f9630dbb1893 100644 (file)
@@ -30,7 +30,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: asmpart.S 5142 2006-07-17 09:47:02Z twisti $
+   $Id: asmpart.S 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -65,7 +65,7 @@
 
        .globl asm_abstractmethoderror
 
-       .globl asm_wrapper_patcher
+       .globl asm_patcher_wrapper
 
        .globl asm_replacement_out
        .globl asm_replacement_in
@@ -511,7 +511,7 @@ asm_abstractmethoderror:
        jmp     L_asm_handle_exception
 
 
-/* asm_wrapper_patcher *********************************************************
+/* asm_patcher_wrapper *********************************************************
 
    XXX
 
@@ -526,7 +526,7 @@ asm_abstractmethoderror:
 
 *******************************************************************************/
 
-asm_wrapper_patcher:
+asm_patcher_wrapper:
        push    bp                          /* save base pointer                  */
        mov     sp,bp                       /* move actual sp to bp               */
        sub     $((3+ARG_CNT+TMP_CNT)*8+sizestackframeinfo),sp
@@ -558,10 +558,10 @@ asm_wrapper_patcher:
        add     $(5*8),sp                   /* remove patcher stackframe, keep RA */
 
        test    itmp3,itmp3                 /* exception thrown?                  */
-       jne     L_asm_wrapper_patcher_exception
+       jne     L_asm_patcher_wrapper_exception
        ret                                 /* call new patched code              */
 
-L_asm_wrapper_patcher_exception:
+L_asm_patcher_wrapper_exception:
        mov     itmp3,xptr                  /* get exception                      */
        pop     xpc                         /* get and remove return address      */
        jmp     L_asm_handle_exception
index bac0fec5a9928659dbab287d4f15db2b7850778b..0e1a93efd18c7c77cfdb3766fc8252dae185a4b6 100644 (file)
@@ -30,7 +30,7 @@
    Changes: Christian Ullrich
             Edwin Steiner
 
-   $Id: codegen.c 5123 2006-07-12 21:45:34Z twisti $
+   $Id: codegen.c 5145 2006-07-17 11:48:38Z twisti $
 
 */
 
@@ -3878,7 +3878,7 @@ gen_method:
                        M_MOV_IMM(pref->patcher, REG_ITMP3);
                        M_PUSH(REG_ITMP3);
 
-                       M_MOV_IMM(asm_wrapper_patcher, REG_ITMP3);
+                       M_MOV_IMM(asm_patcher_wrapper, REG_ITMP3);
                        M_JMP(REG_ITMP3);
                }
        }
@@ -4346,14 +4346,14 @@ u1 *createnativestub(functionptr f, jitdata *jd, methoddesc *nmd)
                        M_MOV_IMM(pref->patcher, REG_ITMP3);
                        M_PUSH(REG_ITMP3);
 
-                       M_MOV_IMM(asm_wrapper_patcher, REG_ITMP3);
+                       M_MOV_IMM(asm_patcher_wrapper, REG_ITMP3);
                        M_JMP(REG_ITMP3);
                }
        }
 
        codegen_finish(jd);
 
-       return jd->code->entrypoint;
+       return code->entrypoint;
 }