dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] libjit ChangeLog jit/jit-apply-x86.h jit/jit-ap...


From: Aleksey Demakov
Subject: [dotgnu-pnet-commits] libjit ChangeLog jit/jit-apply-x86.h jit/jit-ap...
Date: Thu, 25 Jan 2007 20:55:53 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    libjit
Changes by:     Aleksey Demakov <avd>   07/01/25 20:55:53

Modified files:
        .              : ChangeLog 
        jit            : jit-apply-x86.h jit-apply-x86.c 

Log message:
        remove stack frame set up and restore instructions from redirector

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libjit/ChangeLog?cvsroot=dotgnu-pnet&r1=1.295&r2=1.296
http://cvs.savannah.gnu.org/viewcvs/libjit/jit/jit-apply-x86.h?cvsroot=dotgnu-pnet&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/libjit/jit/jit-apply-x86.c?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/ChangeLog,v
retrieving revision 1.295
retrieving revision 1.296
diff -u -b -r1.295 -r1.296
--- ChangeLog   23 Jan 2007 06:42:33 -0000      1.295
+++ ChangeLog   25 Jan 2007 20:55:53 -0000      1.296
@@ -1,3 +1,8 @@
+2007-01-26  Aleksey Demakov  <address@hidden>
+
+       * jit/jit-apply-x86.c (_jit_create_redirector): redirector does not
+       use stack frame so remove frame set up and restore instructions.
+
 2007-01-23  Aleksey Demakov  <address@hidden>
 
        * jit/jit-internal.h, jit/jit-function.c: remove the closure_entry

Index: jit/jit-apply-x86.h
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/jit/jit-apply-x86.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- jit/jit-apply-x86.h 6 Apr 2006 23:42:31 -0000       1.4
+++ jit/jit-apply-x86.h 25 Jan 2007 20:55:53 -0000      1.5
@@ -346,7 +346,7 @@
  * The number of bytes that are needed for a redirector stub.
  * This includes any extra bytes that are needed for alignment.
  */
-#define        jit_redirector_size             32
+#define        jit_redirector_size             24
 
 /*
  * The number of bytes that are needed for a indirector stub.

Index: jit/jit-apply-x86.c
===================================================================
RCS file: /sources/dotgnu-pnet/libjit/jit/jit-apply-x86.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- jit/jit-apply-x86.c 6 Apr 2006 23:42:31 -0000       1.2
+++ jit/jit-apply-x86.c 25 Jan 2007 20:55:53 -0000      1.3
@@ -170,10 +170,6 @@
 {
        void *start = (void *)buf;
 
-       /* Set up a new stack frame */
-       x86_push_reg(buf, X86_EBP);
-       x86_mov_reg_reg(buf, X86_EBP, X86_ESP, 4);
-
        /* Save the fastcall registers, if necessary */
 #if JIT_APPLY_X86_FASTCALL == 1
        if(abi == (int)jit_abi_fastcall)
@@ -201,9 +197,6 @@
        }
 #endif
 
-       /* Restore the value of EBP */
-       x86_pop_reg(buf, X86_EBP);
-
        /* Jump to the function that the redirector indicated */
        x86_jump_reg(buf, X86_EAX);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]