зеркало из https://github.com/github/ruby.git
Enable optimization for PUSH_IF/OR opcodes
This commit is contained in:
Родитель
70f8e9efda
Коммит
1134fa40ee
|
@ -3319,6 +3319,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
|
||||||
GET_RELADDR_INC(addr, p);
|
GET_RELADDR_INC(addr, p);
|
||||||
if (*p == *s && DATA_ENSURE_CHECK1) {
|
if (*p == *s && DATA_ENSURE_CHECK1) {
|
||||||
p++;
|
p++;
|
||||||
|
DO_CACHE_MATCH_OPT(msa->enable_cache_match_opt, pbegin, msa->num_cache_opcode, msa->cache_index_table, end - s, msa->match_cache);
|
||||||
STACK_PUSH_ALT(p + addr, s, sprev, pkeep);
|
STACK_PUSH_ALT(p + addr, s, sprev, pkeep);
|
||||||
MOP_OUT;
|
MOP_OUT;
|
||||||
JUMP;
|
JUMP;
|
||||||
|
@ -3332,6 +3333,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
|
||||||
GET_RELADDR_INC(addr, p);
|
GET_RELADDR_INC(addr, p);
|
||||||
if (*p == *s) {
|
if (*p == *s) {
|
||||||
p++;
|
p++;
|
||||||
|
DO_CACHE_MATCH_OPT(msa->enable_cache_match_opt, pbegin, msa->num_cache_opcode, msa->cache_index_table, end - s, msa->match_cache);
|
||||||
STACK_PUSH_ALT(p + addr, s, sprev, pkeep);
|
STACK_PUSH_ALT(p + addr, s, sprev, pkeep);
|
||||||
MOP_OUT;
|
MOP_OUT;
|
||||||
JUMP;
|
JUMP;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче