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

Issue 1176453002: Optimize trivial regexp disjunctions (Closed)

Created:
5 years, 6 months ago by Erik Corry Chromium.org
Modified:
5 years, 6 months ago
Reviewers:
Yang
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Optimize trivial regexp disjunctions R=yangguo@chromium.org BUG=chromium:482998 LOG=n Committed: https://crrev.com/5f1f7c15b3207f6c51d187692690aeb09d3e36b5 Cr-Commit-Position: refs/heads/master@{#28871}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Raise large regexp limit from 10k to 20k to accomodate twemoji project with a 10800 byte regexp #

Patch Set 3 : Fix off-by-one #

Patch Set 4 : Don't worry about zero length atoms #

Patch Set 5 : Fix int truncation error #

Patch Set 6 : Fix code size test #

Patch Set 7 : Collect large common prefixes in one go and use SubVector #

Patch Set 8 : Typo #

Patch Set 9 : Add test #

Patch Set 10 : Make test faster #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -7 lines) Patch
M src/ast.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/jsregexp.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/jsregexp.cc View 1 2 3 4 5 6 7 1 chunk +181 lines, -0 lines 0 comments Download
M src/list.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/list-inl.h View 1 2 3 4 2 chunks +31 lines, -4 lines 0 comments Download
M src/vector.h View 2 chunks +14 lines, -0 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A test/mjsunit/regress/regress-chromium-482998.js View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
Erik Corry Chromium.org
5 years, 6 months ago (2015-06-09 09:14:42 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/1176453002/40001
5 years, 6 months ago (2015-06-09 10:14:35 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/1119)
5 years, 6 months ago (2015-06-09 10:19:08 UTC) #5
Yang
https://codereview.chromium.org/1176453002/diff/1/src/jsregexp.cc File src/jsregexp.cc (right): https://codereview.chromium.org/1176453002/diff/1/src/jsregexp.cc#newcode4920 src/jsregexp.cc:4920: new (zone) RegExpAtom(suffix_list->ToConstVector()); We could just use old_atom->data()->SubVector(1, len) ...
5 years, 6 months ago (2015-06-09 10:59:35 UTC) #6
Yang
On 2015/06/09 10:59:35, Yang wrote: > https://codereview.chromium.org/1176453002/diff/1/src/jsregexp.cc > File src/jsregexp.cc (right): > > https://codereview.chromium.org/1176453002/diff/1/src/jsregexp.cc#newcode4920 > ...
5 years, 6 months ago (2015-06-09 11:00:26 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176453002/80001
5 years, 6 months ago (2015-06-09 11:15:32 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/3414)
5 years, 6 months ago (2015-06-09 11:28:39 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176453002/100001
5 years, 6 months ago (2015-06-09 12:01:55 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-09 12:27:55 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176453002/120001
5 years, 6 months ago (2015-06-09 13:03:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176453002/140001
5 years, 6 months ago (2015-06-09 13:05:34 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176453002/160001
5 years, 6 months ago (2015-06-09 13:40:47 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176453002/180001
5 years, 6 months ago (2015-06-09 14:19:06 UTC) #31
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-09 15:58:00 UTC) #32
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/5f1f7c15b3207f6c51d187692690aeb09d3e36b5 Cr-Commit-Position: refs/heads/master@{#28871}
5 years, 6 months ago (2015-06-09 15:58:12 UTC) #33
Erik Corry Chromium.org
5 years, 6 months ago (2015-06-09 17:14:30 UTC) #34
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/1174603002/ by erikcorry@chromium.org.

The reason for reverting is: ASAN failure.

Powered by Google App Engine
This is Rietveld 408576698