Guard update after r1260.

This commit is contained in:
Zoltán Herczeg 2020-06-02 16:54:25 +00:00
parent 0652de5597
commit fda3221597
1 changed files with 4 additions and 0 deletions

View File

@ -6183,6 +6183,7 @@ if (common->match_end_ptr != 0)
if (common->nltype == NLTYPE_FIXED && common->newline > 255) if (common->nltype == NLTYPE_FIXED && common->newline > 255)
{ {
#ifdef JIT_HAS_FAST_FORWARD_CHAR_PAIR_SIMD
if (JIT_HAS_FAST_FORWARD_CHAR_PAIR_SIMD && common->mode == PCRE2_JIT_COMPLETE) if (JIT_HAS_FAST_FORWARD_CHAR_PAIR_SIMD && common->mode == PCRE2_JIT_COMPLETE)
{ {
if (HAS_VIRTUAL_REGISTERS) if (HAS_VIRTUAL_REGISTERS)
@ -6210,6 +6211,7 @@ if (common->nltype == NLTYPE_FIXED && common->newline > 255)
OP2(SLJIT_ADD, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(2)); OP2(SLJIT_ADD, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(2));
} }
else else
#endif /* JIT_HAS_FAST_FORWARD_CHAR_PAIR_SIMD */
{ {
lastchar = CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0); lastchar = CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0);
if (HAS_VIRTUAL_REGISTERS) if (HAS_VIRTUAL_REGISTERS)
@ -6271,6 +6273,7 @@ else
loop = LABEL(); loop = LABEL();
common->ff_newline_shortcut = loop; common->ff_newline_shortcut = loop;
#ifdef JIT_HAS_FAST_FORWARD_CHAR_SIMD
if (JIT_HAS_FAST_FORWARD_CHAR_SIMD && (common->nltype == NLTYPE_FIXED || common->nltype == NLTYPE_ANYCRLF)) if (JIT_HAS_FAST_FORWARD_CHAR_SIMD && (common->nltype == NLTYPE_FIXED || common->nltype == NLTYPE_ANYCRLF))
{ {
if (common->nltype == NLTYPE_ANYCRLF) if (common->nltype == NLTYPE_ANYCRLF)
@ -6296,6 +6299,7 @@ if (JIT_HAS_FAST_FORWARD_CHAR_SIMD && (common->nltype == NLTYPE_FIXED || common-
} }
} }
else else
#endif /* JIT_HAS_FAST_FORWARD_CHAR_SIMD */
{ {
read_char(common, common->nlmin, common->nlmax, NULL, READ_CHAR_NEWLINE); read_char(common, common->nlmin, common->nlmax, NULL, READ_CHAR_NEWLINE);
lastchar = CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0); lastchar = CMP(SLJIT_GREATER_EQUAL, STR_PTR, 0, STR_END, 0);