diff options
author | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-02-13 06:04:50 +0000 |
---|---|---|
committer | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-02-13 06:04:50 +0000 |
commit | 3d797613843e50b6525145e8526a0fce35db3dee (patch) | |
tree | e9defe126f731c9aee260f40f1270298aa86a78c /pcre_study.c | |
parent | 4e35708f0769044ff938f0710791e9efb7407da6 (diff) | |
download | pcre-3d797613843e50b6525145e8526a0fce35db3dee.tar.gz |
Partial matching support is added to the JIT compiler
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@914 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_study.c')
-rw-r--r-- | pcre_study.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pcre_study.c b/pcre_study.c index 61deb56..72f435b 100644 --- a/pcre_study.c +++ b/pcre_study.c @@ -1418,7 +1418,8 @@ we don't have to change that code. */ if (bits_set || min > 0 #ifdef SUPPORT_JIT - || (options & PCRE_STUDY_JIT_COMPILE) != 0 + || (options & (PCRE_STUDY_JIT_COMPILE | PCRE_STUDY_JIT_PARTIAL_SOFT_COMPILE + | PCRE_STUDY_JIT_PARTIAL_HARD_COMPILE)) != 0 #endif ) { @@ -1478,7 +1479,13 @@ if (bits_set || min > 0 #ifdef SUPPORT_JIT extra->executable_jit = NULL; - if ((options & PCRE_STUDY_JIT_COMPILE) != 0) PRIV(jit_compile)(re, extra); + if ((options & PCRE_STUDY_JIT_COMPILE) != 0) + PRIV(jit_compile)(re, extra, JIT_COMPILE); + if ((options & PCRE_STUDY_JIT_PARTIAL_SOFT_COMPILE) != 0) + PRIV(jit_compile)(re, extra, JIT_PARTIAL_SOFT_COMPILE); + if ((options & PCRE_STUDY_JIT_PARTIAL_HARD_COMPILE) != 0) + PRIV(jit_compile)(re, extra, JIT_PARTIAL_HARD_COMPILE); + if (study->flags == 0 && (extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) == 0) { #ifdef COMPILE_PCRE8 |