Description[regexp] simplify unanchored advance for unicode regexps.
When doing advance at the start of an unanchored unicode regexp,
we do not have to care about surrogate pairs. If we actually advance
into the middle of a surrogate pair, the only choice is to also
consume trail surrogate as nothing else can match from there.
This reduces the emitted code slightly. By not having choice in the
loop, we do not have to push backtrack onto the stack, preventing
stack overflow.
R=erik.corry@gmail.com, erikcorry@chromium.org
Committed: https://crrev.com/33c78c39d7ea624ca2635ce42a27c069d06d9da3
Cr-Commit-Position: refs/heads/master@{#33838}
Patch Set 1 #
Total comments: 1
Patch Set 2 : shorten test #
Messages
Total messages: 17 (8 generated)
|