[Pcre-svn] [1572] code/trunk/pcre_jit_compile.c: Minor JIT f…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1572] code/trunk/pcre_jit_compile.c: Minor JIT fixes.
Revision: 1572
          http://vcs.pcre.org/viewvc?view=rev&revision=1572
Author:   zherczeg
Date:     2015-06-25 05:02:53 +0100 (Thu, 25 Jun 2015)
Log Message:
-----------
Minor JIT fixes.


Modified Paths:
--------------
    code/trunk/pcre_jit_compile.c


Modified: code/trunk/pcre_jit_compile.c
===================================================================
--- code/trunk/pcre_jit_compile.c    2015-06-23 16:34:53 UTC (rev 1571)
+++ code/trunk/pcre_jit_compile.c    2015-06-25 04:02:53 UTC (rev 1572)
@@ -1071,7 +1071,7 @@
   size = 0;
   bracketlen = 0;
   if (private_data_ptr > SLJIT_MAX_LOCAL_SIZE)
-    return;
+    break;


   if (*cc == OP_ONCE || *cc == OP_ONCE_NC || *cc == OP_BRA || *cc == OP_CBRA || *cc == OP_COND)
     if (detect_repeat(common, cc))
@@ -1162,12 +1162,17 @@
     size = 1;
     break;


-    CASE_ITERATOR_TYPE_PRIVATE_DATA_2B
+    case OP_TYPEUPTO:
     if (cc[1 + IMM2_SIZE] != OP_ANYNL && cc[1 + IMM2_SIZE] != OP_EXTUNI)
       space = 2;
     size = 1 + IMM2_SIZE;
     break;


+    case OP_TYPEMINUPTO:
+    space = 2;
+    size = 1 + IMM2_SIZE;
+    break;
+
     case OP_CLASS:
     case OP_NCLASS:
     size += 1 + 32 / sizeof(pcre_uchar);