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

Issue 1180433003: Reland II of 'Optimize trivial regexp disjunctions' CL 1176453002 (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

Reland II of 'Optimize trivial regexp disjunctions' CL 1176453002 This change rewrites regexps like (ab|ac|z|ad|ae|af) into (a[b-f]|z). We can only reorder disjunctions like this for case-dependent regexps. For case-independent regexps, the disjunctions should be pre-sorted for best results. R=yangguo@chromium.org BUG=chromium:482998 LOG=n Committed: https://crrev.com/05507cc3ea6e96e9e9df98d276c235eea32374dd Cr-Commit-Position: refs/heads/master@{#28902}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Re-add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -8 lines) Patch
M src/ast.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/jsregexp.h View 1 chunk +1 line, -1 line 0 comments Download
M src/jsregexp.cc View 1 chunk +190 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 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 2 chunks +7 lines, -3 lines 0 comments Download
A test/mjsunit/regress/regress-crbug-482998.js View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Erik Corry Chromium.org
5 years, 6 months ago (2015-06-10 09:10:49 UTC) #1
Erik Corry Chromium.org
https://codereview.chromium.org/1180433003/diff/1/src/jsregexp.cc File src/jsregexp.cc (right): https://codereview.chromium.org/1180433003/diff/1/src/jsregexp.cc#newcode4845 src/jsregexp.cc:4845: if (i == length) break; This line is fix ...
5 years, 6 months ago (2015-06-10 09:15:47 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180433003/1
5 years, 6 months ago (2015-06-10 09:16:02 UTC) #4
Yang
On 2015/06/10 09:16:02, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
5 years, 6 months ago (2015-06-10 09:20:45 UTC) #5
Erik Corry Chromium.org
Well spotted. I re-added the test, and took the opportunity to rename it from regress-chromium-482998.js ...
5 years, 6 months ago (2015-06-10 09:27:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180433003/20001
5 years, 6 months ago (2015-06-10 09:27:48 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 6 months ago (2015-06-10 09:55:25 UTC) #10
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 09:55:37 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/05507cc3ea6e96e9e9df98d276c235eea32374dd
Cr-Commit-Position: refs/heads/master@{#28902}

Powered by Google App Engine
This is Rietveld 408576698