Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Issue 1676293003: [regexp] simplify unanchored advance for unicode regexps. (Closed)

Created:
4 years, 10 months ago by Yang
Modified:
4 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -30 lines) Patch
M src/regexp/jsregexp.cc View 2 chunks +12 lines, -28 lines 0 comments Download
A + test/mjsunit/harmony/unicode-regexp-unanchored-advance.js View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
Yang
4 years, 10 months ago (2016-02-08 17:57:59 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676293003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676293003/1
4 years, 10 months ago (2016-02-08 18:24:56 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-08 18:54:01 UTC) #5
Yang
On 2016/02/08 18:54:01, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 10 months ago (2016-02-09 06:43:19 UTC) #7
erikcorry
LGTM https://codereview.chromium.org/1676293003/diff/1/test/mjsunit/harmony/unicode-regexp-unanchored-advance.js File test/mjsunit/harmony/unicode-regexp-unanchored-advance.js (right): https://codereview.chromium.org/1676293003/diff/1/test/mjsunit/harmony/unicode-regexp-unanchored-advance.js#newcode7 test/mjsunit/harmony/unicode-regexp-unanchored-advance.js:7: var s = "a".repeat(1E8) + "\u1234"; I think ...
4 years, 10 months ago (2016-02-09 08:04:47 UTC) #9
Yang
On 2016/02/09 08:04:47, erikcorry wrote: > LGTM > > https://codereview.chromium.org/1676293003/diff/1/test/mjsunit/harmony/unicode-regexp-unanchored-advance.js > File test/mjsunit/harmony/unicode-regexp-unanchored-advance.js (right): > ...
4 years, 10 months ago (2016-02-09 08:26:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676293003/20001
4 years, 10 months ago (2016-02-09 08:26:34 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-09 09:11:05 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-09 09:11:35 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/33c78c39d7ea624ca2635ce42a27c069d06d9da3
Cr-Commit-Position: refs/heads/master@{#33838}

Powered by Google App Engine
This is Rietveld 408576698