Merged with tip.
[cacao.git] / src / vm / jit / powerpc / asmpart.S
index 4a4cb27f1355c3dd8b3802fb51f5e16e3a301b14..cae9439fa6471ab1170a558a1c176a946e9f57bc 100644 (file)
@@ -22,8 +22,6 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: asmpart.S 8274 2007-08-08 15:58:17Z twisti $
-
 */
 
 
        .globl asm_vm_call_method_exception_handler
        .globl asm_vm_call_method_end
 
-       .globl asm_call_jit_compiler
-
        .globl asm_handle_nat_exception
        .globl asm_handle_exception
 
        .globl asm_abstractmethoderror
 
-#if defined(ENABLE_REPLACEMENT)
-       .globl asm_replacement_out
-       .globl asm_replacement_in
-#endif
-
        .globl asm_cacheflush
 
-       .globl asm_compare_and_swap
-       .globl asm_memory_barrier
-
 
 /* asm_vm_call_method **********************************************************
 *                                                                              *
 
        .align 2
 
-       .long   0                         /* catch type all                       */
-       .long   0                         /* exception handler pc                 */
-       .long   0                         /* end pc                               */
-       .long   0                         /* start pc                             */
-       .long   1                         /* extable size                         */
-       .long   0                         /* line number table start              */
-       .long   0                         /* line number table size               */
        .long   0                         /* fltsave                              */
        .long   0                         /* intsave                              */
        .long   0                         /* IsLeaf                               */
-       .long   0                         /* IsSync                               */
        .long   0                         /* frame size                           */
        .long   0                         /* codeinfo pointer                     */
 
@@ -110,7 +90,6 @@ asm_vm_call_method_double:
        stwu    sp,-40*4(sp)              /* keep stack 16-byte aligned           */
 
        stw     s0,8*4(sp)                /* save used callee saved registers     */
-       stw     a0,9*4(sp)                /* save method PV                       */
 
 #if defined(__DARWIN__)
        stw     itmp1,10*4(sp)            /* register r11 is callee saved         */
@@ -140,6 +119,9 @@ asm_vm_call_method_double:
        SAVE_TEMPORARY_REGISTERS(18)        /* the offset has to be even          */
 #endif
 
+       mr      pv,a0                       /* move PV into PV register           */
+       mtctr   pv                          /* move PV into branch register       */
+
        mr      t0,a1                       /* address of data structure          */
        mr      t1,a2                       /* stack argument count               */
 
@@ -197,9 +179,6 @@ L_asm_vm_call_method_stack_copy_loop:
        bgt     L_asm_vm_call_method_stack_copy_loop
 
 L_asm_vm_call_method_stack_copy_done:
-       addi    mptr,s0,9*4                 /* get address of PV                  */
-       lwz     pv,0*4(mptr)                /* load PV                            */
-       mtctr   pv
        bctrl
 1:
        mflr    itmp1
@@ -256,104 +235,6 @@ asm_vm_call_method_end:
        nop
 
 
-/* asm_call_jit_compiler *******************************************************
-
-   Invokes the compiler for untranslated JavaVM methods.
-
-*******************************************************************************/
-
-asm_call_jit_compiler:
-L_asm_call_jit_compiler:                /* required for PIC code              */
-       mflr    r0
-       stw     r0,LA_LR_OFFSET(sp)         /* save return address                */
-       stwu    sp,-(LA_SIZE + 4*4 + INT_ARG_CNT*4 + FLT_ARG_CNT*8)(sp)
-
-#if defined(__DARWIN__)
-       stw     a0,LA_SIZE+(4+0)*4(sp)
-       stw     a1,LA_SIZE+(4+1)*4(sp)
-       stw     a2,LA_SIZE+(4+2)*4(sp)
-       stw     a3,LA_SIZE+(4+3)*4(sp)
-       stw     a4,LA_SIZE+(4+4)*4(sp)
-       stw     a5,LA_SIZE+(4+5)*4(sp)
-       stw     a6,LA_SIZE+(4+6)*4(sp)
-       stw     a7,LA_SIZE+(4+7)*4(sp)
-
-       stfd    fa0,LA_SIZE+(4+8)*4(sp)
-       stfd    fa1,LA_SIZE+(4+10)*4(sp)
-       stfd    fa2,LA_SIZE+(4+12)*4(sp)
-       stfd    fa3,LA_SIZE+(4+14)*4(sp)
-       stfd    fa4,LA_SIZE+(4+16)*4(sp)
-       stfd    fa5,LA_SIZE+(4+18)*4(sp)
-       stfd    fa6,LA_SIZE+(4+20)*4(sp)
-       stfd    fa7,LA_SIZE+(4+22)*4(sp)
-       stfd    fa8,LA_SIZE+(4+24)*4(sp)
-       stfd    fa9,LA_SIZE+(4+26)*4(sp)
-       stfd    fa10,LA_SIZE+(4+28)*4(sp)
-       stfd    fa11,LA_SIZE+(4+30)*4(sp)
-       stfd    fa12,LA_SIZE+(4+32)*4(sp)
-#else
-       SAVE_ARGUMENT_REGISTERS(LA_SIZE_IN_POINTERS)
-#endif
-
-       mr      a0,itmp1
-       mr      a1,mptr
-       addi    a2,sp,(LA_SIZE + 4*4 + INT_ARG_CNT*4 + FLT_ARG_CNT*8)
-       lwz     a3,(LA_SIZE + 4*4 + INT_ARG_CNT*4 + FLT_ARG_CNT*8)+LA_LR_OFFSET(sp)
-       bl      jit_asm_compile
-       mr      pv,v0                       /* move address to pv register        */
-
-#if defined(__DARWIN__)
-       lwz     a0,LA_SIZE+(4+0)*4(sp)
-       lwz     a1,LA_SIZE+(4+1)*4(sp)
-       lwz     a2,LA_SIZE+(4+2)*4(sp)
-       lwz     a3,LA_SIZE+(4+3)*4(sp)
-       lwz     a4,LA_SIZE+(4+4)*4(sp)
-       lwz     a5,LA_SIZE+(4+5)*4(sp)
-       lwz     a6,LA_SIZE+(4+6)*4(sp)
-       lwz     a7,LA_SIZE+(4+7)*4(sp)
-
-       lfd     fa0,LA_SIZE+(4+8)*4(sp)
-       lfd     fa1,LA_SIZE+(4+10)*4(sp)
-       lfd     fa2,LA_SIZE+(4+12)*4(sp)
-       lfd     fa3,LA_SIZE+(4+14)*4(sp)
-       lfd     fa4,LA_SIZE+(4+16)*4(sp)
-       lfd     fa5,LA_SIZE+(4+18)*4(sp)
-       lfd     fa6,LA_SIZE+(4+20)*4(sp)
-       lfd     fa7,LA_SIZE+(4+22)*4(sp)
-       lfd     fa8,LA_SIZE+(4+24)*4(sp)
-       lfd     fa9,LA_SIZE+(4+26)*4(sp)
-       lfd     fa10,LA_SIZE+(4+28)*4(sp)
-       lfd     fa11,LA_SIZE+(4+30)*4(sp)
-       lfd     fa12,LA_SIZE+(4+32)*4(sp)
-#else
-       RESTORE_ARGUMENT_REGISTERS(LA_SIZE_IN_POINTERS)
-#endif
-
-       lwz     itmp1,(LA_SIZE + 4*4 + INT_ARG_CNT*4 + FLT_ARG_CNT*8)+LA_LR_OFFSET(sp)
-       mtlr    itmp1
-
-       addi    sp,sp,(LA_SIZE + 4*4 + INT_ARG_CNT*4 + FLT_ARG_CNT*8)
-
-       mr.     pv,pv                       /* test for exception                 */
-       beq     L_asm_call_jit_compiler_exception
-
-       mtctr   pv                          /* move method address to control reg */
-       bctr                                /* and call the Java method           */
-
-L_asm_call_jit_compiler_exception:
-       mflr    r0
-       stw     r0,LA_LR_OFFSET(sp)
-       stwu    sp,-LA_SIZE_ALIGNED(sp)     /* preserve linkage area              */
-       bl      exceptions_get_and_clear_exception
-       lwz     xpc,LA_SIZE_ALIGNED+LA_LR_OFFSET(sp)
-       mtlr    xpc     
-       addi    sp,sp,LA_SIZE_ALIGNED
-
-       mr      xptr,v0                     /* get exception                      */
-       addi    xpc,xpc,-4                  /* exception address is ra - 4        */
-       b       L_asm_handle_nat_exception
-
-
 /********************* function asm_handle_exception ***************************
 *                                                                              *
 *   This function handles an exception. It does not use the usual calling      *
@@ -378,7 +259,7 @@ L_asm_handle_exception_stack_loop:
        stw     itmp3,LA_SIZE+(4+4)*4(sp)   /* save maybe-leaf flag (cleared)     */
 
        mr      a0,r0                       /* pass return address                */
-       bl      md_codegen_get_pv_from_pc   /* get PV from RA                     */
+       bl      md_asm_codegen_get_pv_from_pc /* get PV from RA                   */
        stw     v0,LA_SIZE+(4+2)*4(sp)      /* save data segment pointer          */
 
        lwz     a0,LA_SIZE+(4+0)*4(sp)      /* pass xptr                          */
@@ -551,252 +432,6 @@ asm_abstractmethoderror:
        b       L_asm_handle_nat_exception
 
 
-#if defined(ENABLE_REPLACEMENT)
-
-/* asm_replacement_out *********************************************************
-
-   This code is jumped to from the replacement-out stubs that are executed
-   when a thread reaches an activated replacement point.
-
-   The purpose of asm_replacement_out is to read out the parts of the
-   execution state that cannot be accessed from C code, store this state,
-   and then call the C function replace_me.
-
-   Stack layout:
-      16                start of stack inside method to replace
-      0   rplpoint *    info on the replacement point that was reached
-
-   NOTE: itmp3 has been clobbered by the replacement-out stub!
-
-*******************************************************************************/
-
-/* some room to accomodate changes of the stack frame size during replacement */
-       /* XXX we should find a cleaner solution here */
-#define REPLACEMENT_ROOM  512
-
-#define sizeexecutionstate_ALIGNED  ((sizeexecutionstate + 15) & ~15)
-
-asm_replacement_out:
-    /* create stack frame */
-       addi    sp,sp,-(sizeexecutionstate_ALIGNED + REPLACEMENT_ROOM)
-
-       /* save link register */
-       mflr    itmp3
-
-       /* save registers in execution state */
-       stw     r0 ,( 0*4+offes_intregs)(sp)
-       stw     r1 ,( 1*4+offes_intregs)(sp)
-       stw     r2 ,( 2*4+offes_intregs)(sp)
-       stw     r3 ,( 3*4+offes_intregs)(sp)
-       stw     r4 ,( 4*4+offes_intregs)(sp)
-       stw     r5 ,( 5*4+offes_intregs)(sp)
-       stw     r6 ,( 6*4+offes_intregs)(sp)
-       stw     r7 ,( 7*4+offes_intregs)(sp)
-       stw     r8 ,( 8*4+offes_intregs)(sp)
-       stw     r9 ,( 9*4+offes_intregs)(sp)
-       stw     r10,(10*4+offes_intregs)(sp)
-       stw     r11,(11*4+offes_intregs)(sp)
-       stw     r12,(12*4+offes_intregs)(sp)
-       stw     r13,(13*4+offes_intregs)(sp)
-       stw     r14,(14*4+offes_intregs)(sp)
-       stw     r15,(15*4+offes_intregs)(sp)
-       stw     r16,(16*4+offes_intregs)(sp) /* link register stored as itmp3 */
-       stw     r17,(17*4+offes_intregs)(sp)
-       stw     r18,(18*4+offes_intregs)(sp)
-       stw     r19,(19*4+offes_intregs)(sp)
-       stw     r20,(20*4+offes_intregs)(sp)
-       stw     r21,(21*4+offes_intregs)(sp)
-       stw     r22,(22*4+offes_intregs)(sp)
-       stw     r23,(23*4+offes_intregs)(sp)
-       stw     r24,(24*4+offes_intregs)(sp)
-       stw     r25,(25*4+offes_intregs)(sp)
-       stw     r26,(26*4+offes_intregs)(sp)
-       stw     r27,(27*4+offes_intregs)(sp)
-       stw     r28,(28*4+offes_intregs)(sp)
-       stw     r29,(29*4+offes_intregs)(sp)
-       stw     r30,(30*4+offes_intregs)(sp)
-       stw     r31,(31*4+offes_intregs)(sp)
-       
-       stfd    fr0 ,( 0*8+offes_fltregs)(sp)
-       stfd    fr1 ,( 1*8+offes_fltregs)(sp)
-       stfd    fr2 ,( 2*8+offes_fltregs)(sp)
-       stfd    fr3 ,( 3*8+offes_fltregs)(sp)
-       stfd    fr4 ,( 4*8+offes_fltregs)(sp)
-       stfd    fr5 ,( 5*8+offes_fltregs)(sp)
-       stfd    fr6 ,( 6*8+offes_fltregs)(sp)
-       stfd    fr7 ,( 7*8+offes_fltregs)(sp)
-       stfd    fr8 ,( 8*8+offes_fltregs)(sp)
-       stfd    fr9 ,( 9*8+offes_fltregs)(sp)
-       stfd    fr10,(10*8+offes_fltregs)(sp)
-       stfd    fr11,(11*8+offes_fltregs)(sp)
-       stfd    fr12,(12*8+offes_fltregs)(sp)
-       stfd    fr13,(13*8+offes_fltregs)(sp)
-       stfd    fr14,(14*8+offes_fltregs)(sp)
-       stfd    fr15,(15*8+offes_fltregs)(sp)
-       stfd    fr16,(16*8+offes_fltregs)(sp)
-       stfd    fr17,(17*8+offes_fltregs)(sp)
-       stfd    fr18,(18*8+offes_fltregs)(sp)
-       stfd    fr19,(19*8+offes_fltregs)(sp)
-       stfd    fr20,(20*8+offes_fltregs)(sp)
-       stfd    fr21,(21*8+offes_fltregs)(sp)
-       stfd    fr22,(22*8+offes_fltregs)(sp)
-       stfd    fr23,(23*8+offes_fltregs)(sp)
-       stfd    fr24,(24*8+offes_fltregs)(sp)
-       stfd    fr25,(25*8+offes_fltregs)(sp)
-       stfd    fr26,(26*8+offes_fltregs)(sp)
-       stfd    fr27,(27*8+offes_fltregs)(sp)
-       stfd    fr28,(28*8+offes_fltregs)(sp)
-       stfd    fr29,(29*8+offes_fltregs)(sp)
-       stfd    fr30,(30*8+offes_fltregs)(sp)
-       stfd    fr31,(31*8+offes_fltregs)(sp)
-       
-       /* calculate sp of method */
-       addi    itmp1,sp,(sizeexecutionstate_ALIGNED + REPLACEMENT_ROOM + 4*4)
-       stw     itmp1,(offes_sp)(sp)
-
-       /* store pv */
-       stw     pv,(offes_pv)(sp)
-
-       /* call replace_me */
-       lwz     a0,-(4*4)(itmp1)            /* arg0: rplpoint *                   */
-       mr      a1,sp                       /* arg1: execution state              */
-       addi    sp,sp,-(LA_SIZE_ALIGNED)
-       b       replace_me                  /* call C function replace_me         */
-
-/* asm_replacement_in **********************************************************
-
-   This code writes the given execution state and jumps to the replacement
-   code.
-
-   This function never returns!
-
-   NOTE: itmp3 is not restored!
-
-   C prototype:
-      void asm_replacement_in(executionstate *es, replace_safestack_t *st);
-
-*******************************************************************************/
-
-asm_replacement_in:
-       /* a0 == executionstate *es      */
-       /* a1 == replace_safestack_t *st */
-
-       /* get arguments */
-       mr              s1,a1                       /* replace_safestack_t *st            */
-       mr              s2,a0                       /* executionstate *es == safe stack   */
-
-       /* switch to the safe stack */
-       mr              sp,s2
-
-       /* reserve linkage area */
-       addi    sp,sp,-(LA_SIZE_ALIGNED)
-
-       /* call replace_build_execution_state(st) */
-       mr              a0,s1
-       bl              replace_build_execution_state
-
-       /* set new sp */
-       lwz             sp,(offes_sp)(s2)
-
-       /* build stack frame */
-       addi    sp,sp,-(sizeexecutionstate_ALIGNED)
-
-       /* call replace_free_safestack(st,& of allocated executionstate_t) */
-       mr              a1,sp /* tmpes */
-       mr              a0,s1 /* st    */
-       addi    sp,sp,-(LA_SIZE_ALIGNED)  /* reserve linkage area */
-       bl              replace_free_safestack
-       addi    sp,sp,+(LA_SIZE_ALIGNED)  /* tear down linkage area */
-
-       /* set new pv */
-       lwz     pv,(offes_pv)(sp)
-       
-       /* copy registers from execution state */
-       lwz     r0 ,( 0*4+offes_intregs)(sp)
-       /* r1 is sp                       */
-       /* r2 is reserved                 */
-       lwz     a0 ,( 3*4+offes_intregs)(sp)
-       lwz     r4 ,( 4*4+offes_intregs)(sp)
-       lwz     r5 ,( 5*4+offes_intregs)(sp)
-       lwz     r6 ,( 6*4+offes_intregs)(sp)
-       lwz     r7 ,( 7*4+offes_intregs)(sp)
-       lwz     r8 ,( 8*4+offes_intregs)(sp)
-       lwz     r9 ,( 9*4+offes_intregs)(sp)
-       lwz     r10,(10*4+offes_intregs)(sp)
-       lwz     r11,(11*4+offes_intregs)(sp)
-       lwz     r12,(12*4+offes_intregs)(sp)
-       /* r13 is pv                      */
-       lwz     r14,(14*4+offes_intregs)(sp)
-       lwz     r15,(15*4+offes_intregs)(sp)
-       lwz     r16,(16*4+offes_intregs)(sp) /* itmp3, later to link register */
-       lwz     r17,(17*4+offes_intregs)(sp)
-       lwz     r18,(18*4+offes_intregs)(sp)
-       lwz     r19,(19*4+offes_intregs)(sp)
-       lwz     r20,(20*4+offes_intregs)(sp)
-       lwz     r21,(21*4+offes_intregs)(sp)
-       lwz     r22,(22*4+offes_intregs)(sp)
-       lwz     r23,(23*4+offes_intregs)(sp)
-       lwz     r24,(24*4+offes_intregs)(sp)
-       lwz     r25,(25*4+offes_intregs)(sp)
-       lwz     r26,(26*4+offes_intregs)(sp)
-       lwz     r27,(27*4+offes_intregs)(sp)
-       lwz     r28,(28*4+offes_intregs)(sp)
-       lwz     r29,(29*4+offes_intregs)(sp)
-       lwz     r30,(30*4+offes_intregs)(sp)
-       lwz     r31,(31*4+offes_intregs)(sp)
-       
-       lfd     fr0 ,( 0*8+offes_fltregs)(sp)
-       lfd     fr1 ,( 1*8+offes_fltregs)(sp)
-       lfd     fr2 ,( 2*8+offes_fltregs)(sp)
-       lfd     fr3 ,( 3*8+offes_fltregs)(sp)
-       lfd     fr4 ,( 4*8+offes_fltregs)(sp)
-       lfd     fr5 ,( 5*8+offes_fltregs)(sp)
-       lfd     fr6 ,( 6*8+offes_fltregs)(sp)
-       lfd     fr7 ,( 7*8+offes_fltregs)(sp)
-       lfd     fr8 ,( 8*8+offes_fltregs)(sp)
-       lfd     fr9 ,( 9*8+offes_fltregs)(sp)
-       lfd     fr10,(10*8+offes_fltregs)(sp)
-       lfd     fr11,(11*8+offes_fltregs)(sp)
-       lfd     fr12,(12*8+offes_fltregs)(sp)
-       lfd     fr13,(13*8+offes_fltregs)(sp)
-       lfd     fr14,(14*8+offes_fltregs)(sp)
-       lfd     fr15,(15*8+offes_fltregs)(sp)
-       lfd     fr16,(16*8+offes_fltregs)(sp)
-       lfd     fr17,(17*8+offes_fltregs)(sp)
-       lfd     fr18,(18*8+offes_fltregs)(sp)
-       lfd     fr19,(19*8+offes_fltregs)(sp)
-       lfd     fr20,(20*8+offes_fltregs)(sp)
-       lfd     fr21,(21*8+offes_fltregs)(sp)
-       lfd     fr22,(22*8+offes_fltregs)(sp)
-       lfd     fr23,(23*8+offes_fltregs)(sp)
-       lfd     fr24,(24*8+offes_fltregs)(sp)
-       lfd     fr25,(25*8+offes_fltregs)(sp)
-       lfd     fr26,(26*8+offes_fltregs)(sp)
-       lfd     fr27,(27*8+offes_fltregs)(sp)
-       lfd     fr28,(28*8+offes_fltregs)(sp)
-       lfd     fr29,(29*8+offes_fltregs)(sp)
-       lfd     fr30,(30*8+offes_fltregs)(sp)
-       lfd     fr31,(31*8+offes_fltregs)(sp)
-
-       /* restore link register */
-
-       mtlr    itmp3
-       
-       /* load new pc */
-
-       lwz     itmp3,offes_pc(sp)
-
-       /* remove stack frame */
-
-       addi    sp,sp,+(sizeexecutionstate_ALIGNED)
-
-       /* jump to new code */
-
-       mtctr   itmp3
-       bctr
-
-#endif /* defined(ENABLE_REPLACEMENT) */
-
 /*********************************************************************/
 
 asm_cacheflush:
@@ -825,36 +460,6 @@ asm_cacheflush:
        blr
 
 
-/* asm_compare_and_swap ********************************************************
-
-   XXX
-
-*******************************************************************************/
-
-asm_compare_and_swap:
-1:
-       lwarx   a6,0,a0 
-       subf.   r0,a6,a1 
-       bne-    2f 
-       or      r0,a2,a2 
-       stwcx.  r0,0,a0 
-       bne-    1b 
-2: 
-       mr      a0,a6
-       blr
-
-
-/* asm_memory_barrier **********************************************************
-
-   XXX
-
-*******************************************************************************/
-
-asm_memory_barrier:
-       sync
-       blr
-
-
 #if defined(__DARWIN__)
 
 .section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
@@ -879,21 +484,21 @@ L_builtin_throw_exception$lazy_ptr:
 
 .section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
        .align 2
-L_md_codegen_get_pv_from_pc$stub:
-       .indirect_symbol _md_codegen_get_pv_from_pc
+L_md_asm_codegen_get_pv_from_pc$stub:
+       .indirect_symbol _md_asm_codegen_get_pv_from_pc
        mflr r0
-       bcl 20,31,L00$_md_codegen_get_pv_from_pc
-L00$_md_codegen_get_pv_from_pc:
+       bcl 20,31,L00$_md_asm_codegen_get_pv_from_pc
+L00$_md_asm_codegen_get_pv_from_pc:
        mflr r11
-       addis r11,r11,ha16(L_md_codegen_get_pv_from_pc$lazy_ptr - L00$_md_codegen_get_pv_from_pc)
+       addis r11,r11,ha16(L_md_asm_codegen_get_pv_from_pc$lazy_ptr - L00$_md_asm_codegen_get_pv_from_pc)
        mtlr r0
-       lwzu r12,lo16(L_md_codegen_get_pv_from_pc$lazy_ptr - L00$_md_codegen_get_pv_from_pc)(r11)
+       lwzu r12,lo16(L_md_asm_codegen_get_pv_from_pc$lazy_ptr - L00$_md_asm_codegen_get_pv_from_pc)(r11)
        mtctr r12
        bctr
 .data
 .lazy_symbol_pointer
-L_md_codegen_get_pv_from_pc$lazy_ptr:
-       .indirect_symbol _md_codegen_get_pv_from_pc
+L_md_asm_codegen_get_pv_from_pc$lazy_ptr:
+       .indirect_symbol _md_asm_codegen_get_pv_from_pc
        .long dyld_stub_binding_helper
 
 
@@ -917,86 +522,6 @@ L_exceptions_handle_exception$lazy_ptr:
        .long dyld_stub_binding_helper
 
 
-.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
-       .align 2
-L_stacktrace_create_extern_stackframeinfo$stub:
-       .indirect_symbol _stacktrace_create_extern_stackframeinfo
-       mflr r0
-       bcl 20,31,L00$_stacktrace_create_extern_stackframeinfo
-L00$_stacktrace_create_extern_stackframeinfo:
-       mflr r11
-       addis r11,r11,ha16(L_stacktrace_create_extern_stackframeinfo$lazy_ptr - L00$_stacktrace_create_extern_stackframeinfo)
-       mtlr r0
-       lwzu r12,lo16(L_stacktrace_create_extern_stackframeinfo$lazy_ptr - L00$_stacktrace_create_extern_stackframeinfo)(r11)
-       mtctr r12
-       bctr
-.data
-.lazy_symbol_pointer
-L_stacktrace_create_extern_stackframeinfo$lazy_ptr:
-       .indirect_symbol _stacktrace_create_extern_stackframeinfo
-       .long dyld_stub_binding_helper
-
-
-.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
-       .align 2
-L_jit_asm_compile$stub:
-       .indirect_symbol _jit_asm_compile
-       mflr r0
-       bcl 20,31,L00$_jit_asm_compile
-L00$_jit_asm_compile:
-       mflr r11
-       addis r11,r11,ha16(L_jit_asm_compile$lazy_ptr - L00$_jit_asm_compile)
-       mtlr r0
-       lwzu r12,lo16(L_jit_asm_compile$lazy_ptr - L00$_jit_asm_compile)(r11)
-       mtctr r12
-       bctr
-.data
-.lazy_symbol_pointer
-L_jit_asm_compile$lazy_ptr:
-       .indirect_symbol _jit_asm_compile
-       .long dyld_stub_binding_helper
-
-
-.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
-       .align 2
-L_stacktrace_remove_stackframeinfo$stub:
-       .indirect_symbol _stacktrace_remove_stackframeinfo
-       mflr r0
-       bcl 20,31,L00$_stacktrace_remove_stackframeinfo
-L00$_stacktrace_remove_stackframeinfo:
-       mflr r11
-       addis r11,r11,ha16(L_stacktrace_remove_stackframeinfo$lazy_ptr - L00$_stacktrace_remove_stackframeinfo)
-       mtlr r0
-       lwzu r12,lo16(L_stacktrace_remove_stackframeinfo$lazy_ptr - L00$_stacktrace_remove_stackframeinfo)(r11)
-       mtctr r12
-       bctr
-.data
-.lazy_symbol_pointer
-L_stacktrace_remove_stackframeinfo$lazy_ptr:
-       .indirect_symbol _stacktrace_remove_stackframeinfo
-       .long dyld_stub_binding_helper
-
-
-.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
-       .align 2
-L_exceptions_get_and_clear_exception$stub:
-       .indirect_symbol _exceptions_get_and_clear_exception
-       mflr r0
-       bcl 20,31,L00$_exceptions_get_and_clear_exception
-L00$_exceptions_get_and_clear_exception:
-       mflr r11
-       addis r11,r11,ha16(L_exceptions_get_and_clear_exception$lazy_ptr - L00$_exceptions_get_and_clear_exception)
-       mtlr r0
-       lwzu r12,lo16(L_exceptions_get_and_clear_exception$lazy_ptr - L00$_exceptions_get_and_clear_exception)(r11)
-       mtctr r12
-       bctr
-.data
-.lazy_symbol_pointer
-L_exceptions_get_and_clear_exception$lazy_ptr:
-       .indirect_symbol _exceptions_get_and_clear_exception
-       .long dyld_stub_binding_helper
-
-
 .section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
        .align 2
 L_exceptions_asm_new_abstractmethoderror$stub:
@@ -1016,70 +541,6 @@ L_exceptions_asm_new_abstractmethoderror$lazy_ptr:
        .indirect_symbol _exceptions_asm_new_abstractmethoderror
        .long dyld_stub_binding_helper
 
-
-# if defined(ENABLE_REPLACEMENT)
-
-.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
-       .align 2
-L_replace_me$stub:
-       .indirect_symbol _replace_me
-       mflr r0
-       bcl 20,31,L00$_replace_me
-L00$_replace_me:
-       mflr r11
-       addis r11,r11,ha16(L_replace_me$lazy_ptr - L00$_replace_me)
-       mtlr r0
-       lwzu r12,lo16(L_replace_me$lazy_ptr - L00$_replace_me)(r11)
-       mtctr r12
-       bctr
-.data
-.lazy_symbol_pointer
-L_replace_me$lazy_ptr:
-       .indirect_symbol _replace_me
-       .long dyld_stub_binding_helper
-
-
-.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
-       .align 2
-L_replace_build_execution_state$stub:
-       .indirect_symbol _replace_build_execution_state
-       mflr r0
-       bcl 20,31,L00$_replace_build_execution_state
-L00$_replace_build_execution_state:
-       mflr r11
-       addis r11,r11,ha16(L_replace_build_execution_state$lazy_ptr - L00$_replace_build_execution_state)
-       mtlr r0
-       lwzu r12,lo16(L_replace_build_execution_state$lazy_ptr - L00$_replace_build_execution_state)(r11)
-       mtctr r12
-       bctr
-.data
-.lazy_symbol_pointer
-L_replace_build_execution_state$lazy_ptr:
-       .indirect_symbol _replace_build_execution_state
-       .long dyld_stub_binding_helper
-
-
-.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
-       .align 2
-L_replace_free_safestack$stub:
-       .indirect_symbol _replace_free_safestack
-       mflr r0
-       bcl 20,31,L00$_replace_free_safestack
-L00$_replace_free_safestack:
-       mflr r11
-       addis r11,r11,ha16(L_replace_free_safestack$lazy_ptr - L00$_replace_free_safestack)
-       mtlr r0
-       lwzu r12,lo16(L_replace_free_safestack$lazy_ptr - L00$_replace_free_safestack)(r11)
-       mtctr r12
-       bctr
-.data
-.lazy_symbol_pointer
-L_replace_free_safestack$lazy_ptr:
-       .indirect_symbol _replace_free_safestack
-       .long dyld_stub_binding_helper
-
-# endif /* ENABLE_REPLACEMENT */
-
 #endif /* defined(__DARWIN__) */