* changed src/vm/jit/m68k/asmpart.S: Removed unused method
authorRoland Lezuo <tbfg@complang.tuwien.ac.at>
Mon, 22 Oct 2007 16:41:26 +0000 (18:41 +0200)
committerRoland Lezuo <tbfg@complang.tuwien.ac.at>
Mon, 22 Oct 2007 16:41:26 +0000 (18:41 +0200)
header entries.

* changed src/vm/jit/m68k/codegen.c (codegen_emit): New
linenumbertables code.

1  2 
src/vm/jit/m68k/asmpart.S
src/vm/jit/m68k/codegen.c

Simple merge
index d1d5bf33999a30e807aca60ef3c7977cc939c0f6,6af41617af404b83fe71227651b0751ce36b5a32..7015749811f0232790382db8654abb16c8e9d3ec
@@@ -54,6 -54,6 +54,7 @@@
  #include "vm/jit/codegen-common.h"
  #include "vm/jit/patcher-common.h"
  #include "vm/jit/dseg.h"
++#include "vm/jit/linenumbertable.h"
  #include "vm/jit/emit-common.h"
  #include "vm/jit/jit.h"
  #include "vm/jit/abi.h"
@@@ -341,14 -340,14 +340,14 @@@ bool codegen_emit(jitdata *jd
                case ICMD_INLINE_BODY:
  
                        REPLACEMENT_POINT_INLINE_BODY(cd, iptr);
-                       dseg_addlinenumber_inline_start(cd, iptr);
-                       dseg_addlinenumber(cd, iptr->line);
 -                      linenumbertable_list_entry_add_inline_start(cd, iptr);
++                      linenumbertable_list_entry_add_intern(cd, iptr);
+                       linenumbertable_list_entry_add(cd, iptr->line);
                        break;
  
                case ICMD_INLINE_END:
  
-                       dseg_addlinenumber_inline_end(cd, iptr);
-                       dseg_addlinenumber(cd, iptr->line);
 -                      linenumbertable_list_entry_add_inline_end(cd, iptr);
++                      linenumbertable_list_entry_add_inline(cd, iptr);
+                       linenumbertable_list_entry_add(cd, iptr->line);
                        break;
  
                case ICMD_CHECKNULL:  /* ..., objectref  ==> ..., objectref           */
@@@ -2376,31 -2373,30 +2373,7 @@@ nowperformreturn
  
        return true;
  }
- #if 0
- /* codegen_emit_stub_compiler **************************************************
-    Emits a stub routine which calls the compiler.
-       
- *******************************************************************************/
- void codegen_emit_stub_compiler(jitdata *jd)
- {
-       methodinfo  *m;
-       codegendata *cd;
-       /* get required compiler data */
-       m  = jd->m;
-       cd = jd->cd;
-       /* code for the stub */
-       M_AMOV_IMM(m, REG_ATMP1);
-       M_AMOV_IMM(asm_call_jit_compiler, REG_ATMP3);
-       M_JMP(REG_ATMP3);
- }
- #endif
  
 -
 -/* codegen_emit_stub_compiler **************************************************
 -
 -   Emits a stub routine which calls the compiler.
 -      
 -*******************************************************************************/
 -
 -void codegen_emit_stub_compiler(jitdata *jd)
 -{
 -      methodinfo  *m;
 -      codegendata *cd;
 -
 -      /* get required compiler data */
 -
 -      m  = jd->m;
 -      cd = jd->cd;
 -
 -      /* code for the stub */
 -
 -      M_AMOV_IMM(m, REG_ATMP1);
 -      M_AMOV_IMM(asm_call_jit_compiler, REG_ATMP3);
 -      M_JMP(REG_ATMP3);
 -}
  /* codegen_emit_stub_native ****************************************************
  
     Emits a stub routine which calls a native method.
@@@ -2434,14 -2430,11 +2407,11 @@@ void codegen_emit_stub_native(jitdata *
                4;                                              /* args for codegen_start_native_call */
  
        /* create method header */
 -      (void) dseg_add_unique_address(cd, code);              /* CodeinfoPointer */
 -      (void) dseg_add_unique_s4(cd, cd->stackframesize * 4); /* FrameSize       */
 -      (void) dseg_add_unique_s4(cd, 0);                      /* IsLeaf          */
 -      (void) dseg_add_unique_s4(cd, 0);                      /* IntSave         */
 -      (void) dseg_add_unique_s4(cd, 0);                      /* FltSave         */
 +      (void) dseg_add_unique_address(cd, code);                      /* CodeinfoPointer */
 +      (void) dseg_add_unique_s4(cd, cd->stackframesize * 8);         /* FrameSize       */
-       (void) dseg_add_unique_s4(cd, 0);                              /* IsSync          */
 +      (void) dseg_add_unique_s4(cd, 0);                              /* IsLeaf          */
 +      (void) dseg_add_unique_s4(cd, 0);                              /* IntSave         */
 +      (void) dseg_add_unique_s4(cd, 0);                              /* FltSave         */
-       (void) dseg_addlinenumbertablesize(cd);
-       (void) dseg_add_unique_s4(cd, 0);                              /* ExTableSize     */
  
        /* print call trace */
  #if !defined(NDEBUG)