[Pcre-svn] [1243] code/trunk/sljit: JIT compiler update.

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1243] code/trunk/sljit: JIT compiler update.
Revision: 1243
          http://vcs.pcre.org/viewvc?view=rev&revision=1243
Author:   zherczeg
Date:     2013-01-29 08:11:36 +0000 (Tue, 29 Jan 2013)


Log Message:
-----------
JIT compiler update.

Modified Paths:
--------------
    code/trunk/sljit/sljitNativeARM_Thumb2.c
    code/trunk/sljit/sljitNativeARM_v5.c
    code/trunk/sljit/sljitNativeMIPS_common.c
    code/trunk/sljit/sljitNativePPC_common.c
    code/trunk/sljit/sljitNativeSPARC_common.c
    code/trunk/sljit/sljitNativeX86_common.c


Modified: code/trunk/sljit/sljitNativeARM_Thumb2.c
===================================================================
--- code/trunk/sljit/sljitNativeARM_Thumb2.c    2013-01-26 17:51:43 UTC (rev 1242)
+++ code/trunk/sljit/sljitNativeARM_Thumb2.c    2013-01-29 08:11:36 UTC (rev 1243)
@@ -418,9 +418,9 @@
         jump = jump->next;
     }


+    compiler->error = SLJIT_ERR_COMPILED;
+    compiler->executable_size = (code_ptr - code) * sizeof(sljit_uh);
     SLJIT_CACHE_FLUSH(code, code_ptr);
-    compiler->error = SLJIT_ERR_COMPILED;
-    compiler->executable_size = compiler->size * sizeof(sljit_uh);
     /* Set thumb mode flag. */
     return (void*)((sljit_uw)code | 0x1);
 }


Modified: code/trunk/sljit/sljitNativeARM_v5.c
===================================================================
--- code/trunk/sljit/sljitNativeARM_v5.c    2013-01-26 17:51:43 UTC (rev 1242)
+++ code/trunk/sljit/sljitNativeARM_v5.c    2013-01-29 08:11:36 UTC (rev 1243)
@@ -787,9 +787,9 @@


     SLJIT_ASSERT(code_ptr - code <= (sljit_si)size);


+    compiler->error = SLJIT_ERR_COMPILED;
+    compiler->executable_size = (code_ptr - code) * sizeof(sljit_uw);
     SLJIT_CACHE_FLUSH(code, code_ptr);
-    compiler->error = SLJIT_ERR_COMPILED;
-    compiler->executable_size = size * sizeof(sljit_uw);
     return code;
 }



Modified: code/trunk/sljit/sljitNativeMIPS_common.c
===================================================================
--- code/trunk/sljit/sljitNativeMIPS_common.c    2013-01-26 17:51:43 UTC (rev 1242)
+++ code/trunk/sljit/sljitNativeMIPS_common.c    2013-01-29 08:11:36 UTC (rev 1243)
@@ -398,7 +398,7 @@
     }


     compiler->error = SLJIT_ERR_COMPILED;
-    compiler->executable_size = compiler->size * sizeof(sljit_ins);
+    compiler->executable_size = (code_ptr - code) * sizeof(sljit_ins);
 #ifndef __GNUC__
     SLJIT_CACHE_FLUSH(code, code_ptr);
 #else


Modified: code/trunk/sljit/sljitNativePPC_common.c
===================================================================
--- code/trunk/sljit/sljitNativePPC_common.c    2013-01-26 17:51:43 UTC (rev 1242)
+++ code/trunk/sljit/sljitNativePPC_common.c    2013-01-29 08:11:36 UTC (rev 1243)
@@ -402,9 +402,9 @@
         jump = jump->next;
     }


+    compiler->error = SLJIT_ERR_COMPILED;
+    compiler->executable_size = (code_ptr - code) * sizeof(sljit_ins);
     SLJIT_CACHE_FLUSH(code, code_ptr);
-    compiler->error = SLJIT_ERR_COMPILED;
-    compiler->executable_size = compiler->size * sizeof(sljit_ins);


#if (defined SLJIT_INDIRECT_CALL && SLJIT_INDIRECT_CALL)
#if (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)

Modified: code/trunk/sljit/sljitNativeSPARC_common.c
===================================================================
--- code/trunk/sljit/sljitNativeSPARC_common.c    2013-01-26 17:51:43 UTC (rev 1242)
+++ code/trunk/sljit/sljitNativeSPARC_common.c    2013-01-29 08:11:36 UTC (rev 1243)
@@ -369,7 +369,7 @@



     compiler->error = SLJIT_ERR_COMPILED;
-    compiler->executable_size = compiler->size * sizeof(sljit_ins);
+    compiler->executable_size = (code_ptr - code) * sizeof(sljit_ins);
     SLJIT_CACHE_FLUSH(code, code_ptr);
     return code;
 }


Modified: code/trunk/sljit/sljitNativeX86_common.c
===================================================================
--- code/trunk/sljit/sljitNativeX86_common.c    2013-01-26 17:51:43 UTC (rev 1242)
+++ code/trunk/sljit/sljitNativeX86_common.c    2013-01-29 08:11:36 UTC (rev 1243)
@@ -550,7 +550,7 @@
     /* Maybe we waste some space because of short jumps. */
     SLJIT_ASSERT(code_ptr <= code + compiler->size);
     compiler->error = SLJIT_ERR_COMPILED;
-    compiler->executable_size = compiler->size;
+    compiler->executable_size = code_ptr - code;
     return (void*)code;
 }