|
|
Description[regexp] restrict pattern syntax for unicode mode.
ES2015 Annex B.1.4 specifies a restricted pattern language for unicode
mode. This change reflects that, based on some test262 test cases.
R=littledan@chromium.org
BUG=v8:2952
LOG=N
Committed: https://crrev.com/e918c4ec464456a374098049ca22eac2107f6223
Cr-Commit-Position: refs/heads/master@{#33584}
Committed: https://crrev.com/bb6a53573cd05786c0a6e4a229d57f63582161c8
Cr-Commit-Position: refs/heads/master@{#33603}
Patch Set 1 #Patch Set 2 : fix #Patch Set 3 : commments and error messages #Patch Set 4 : allow forward slash as identity escape #
Total comments: 4
Patch Set 5 : rebase #Patch Set 6 : addressed comments #
Messages
Total messages: 34 (16 generated)
The CQ bit was checked by yangguo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645573002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645573002/1
The CQ bit was unchecked by commit-bot@chromium.org
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/...)
The CQ bit was checked by yangguo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645573002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645573002/20001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #3 (id:40001) has been deleted
The CQ bit was checked by yangguo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645573002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645573002/60001
yangguo@chromium.org changed reviewers: + vogelheim@chromium.org - littledan@chromium.org
Daniel, could you take a look at this?
The CQ bit was checked by yangguo@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645573002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645573002/80001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm Two nitpicks about the error handling; but honestly I'm not sure I even understand that. https://codereview.chromium.org/1645573002/diff/80001/src/regexp/regexp-parse... File src/regexp/regexp-parser.cc (right): https://codereview.chromium.org/1645573002/diff/80001/src/regexp/regexp-parse... src/regexp/regexp-parser.cc:496: ReportError(CStrVector("Lone quantifier brackets") CHECK_FAILED); I don't get the point of the ReportError(... CHECK_FAILED) construct. As I read it, ReportError set failed_ = true; and returns NULL, and CHECK_FAILED will test for failed_ and return NULL, too. Wouldn't return ReportError(...) do the same thing, except somewhat less unorthodox? https://codereview.chromium.org/1645573002/diff/80001/src/regexp/regexp-parse... src/regexp/regexp-parser.cc:1029: return ReportError(CStrVector(kRangeInvalid) CHECK_FAILED); CHECK_FAILED adds a return, after the unconditional return in this line.
The CQ bit was checked by yangguo@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from vogelheim@chromium.org Link to the patchset: https://codereview.chromium.org/1645573002/#ps120001 (title: "addressed comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645573002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645573002/120001
https://codereview.chromium.org/1645573002/diff/80001/src/regexp/regexp-parse... File src/regexp/regexp-parser.cc (right): https://codereview.chromium.org/1645573002/diff/80001/src/regexp/regexp-parse... src/regexp/regexp-parser.cc:496: ReportError(CStrVector("Lone quantifier brackets") CHECK_FAILED); On 2016/01/28 13:38:21, vogelheim wrote: > I don't get the point of the ReportError(... CHECK_FAILED) construct. > > As I read it, ReportError set failed_ = true; and returns NULL, and CHECK_FAILED > will test for failed_ and return NULL, too. Wouldn't return ReportError(...) do > the same thing, except somewhat less unorthodox? Done. https://codereview.chromium.org/1645573002/diff/80001/src/regexp/regexp-parse... src/regexp/regexp-parser.cc:1029: return ReportError(CStrVector(kRangeInvalid) CHECK_FAILED); On 2016/01/28 13:38:21, vogelheim wrote: > CHECK_FAILED adds a return, after the unconditional return in this line. You are completely right. I simply copied the code from other places where we call ReportError. Fixed all of those places now.
Message was sent while issue was closed.
Committed patchset #6 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== [regexp] restrict pattern syntax for unicode mode. ES2015 Annex B.1.4 specifies a restricted pattern language for unicode mode. This change reflects that, based on some test262 test cases. R=littledan@chromium.org BUG=v8:2952 LOG=N ========== to ========== [regexp] restrict pattern syntax for unicode mode. ES2015 Annex B.1.4 specifies a restricted pattern language for unicode mode. This change reflects that, based on some test262 test cases. R=littledan@chromium.org BUG=v8:2952 LOG=N Committed: https://crrev.com/e918c4ec464456a374098049ca22eac2107f6223 Cr-Commit-Position: refs/heads/master@{#33584} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/e918c4ec464456a374098049ca22eac2107f6223 Cr-Commit-Position: refs/heads/master@{#33584}
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/1648673002/ by machenbach@chromium.org. The reason for reverting is: [Sheriff] Breaks layout tests: https://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2064/bui....
Message was sent while issue was closed.
Description was changed from ========== [regexp] restrict pattern syntax for unicode mode. ES2015 Annex B.1.4 specifies a restricted pattern language for unicode mode. This change reflects that, based on some test262 test cases. R=littledan@chromium.org BUG=v8:2952 LOG=N Committed: https://crrev.com/e918c4ec464456a374098049ca22eac2107f6223 Cr-Commit-Position: refs/heads/master@{#33584} ========== to ========== [regexp] restrict pattern syntax for unicode mode. ES2015 Annex B.1.4 specifies a restricted pattern language for unicode mode. This change reflects that, based on some test262 test cases. R=littledan@chromium.org BUG=v8:2952 LOG=N Committed: https://crrev.com/e918c4ec464456a374098049ca22eac2107f6223 Cr-Commit-Position: refs/heads/master@{#33584} ==========
The CQ bit was checked by yangguo@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645573002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645573002/120001
Message was sent while issue was closed.
Description was changed from ========== [regexp] restrict pattern syntax for unicode mode. ES2015 Annex B.1.4 specifies a restricted pattern language for unicode mode. This change reflects that, based on some test262 test cases. R=littledan@chromium.org BUG=v8:2952 LOG=N Committed: https://crrev.com/e918c4ec464456a374098049ca22eac2107f6223 Cr-Commit-Position: refs/heads/master@{#33584} ========== to ========== [regexp] restrict pattern syntax for unicode mode. ES2015 Annex B.1.4 specifies a restricted pattern language for unicode mode. This change reflects that, based on some test262 test cases. R=littledan@chromium.org BUG=v8:2952 LOG=N Committed: https://crrev.com/e918c4ec464456a374098049ca22eac2107f6223 Cr-Commit-Position: refs/heads/master@{#33584} ==========
Message was sent while issue was closed.
Committed patchset #6 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== [regexp] restrict pattern syntax for unicode mode. ES2015 Annex B.1.4 specifies a restricted pattern language for unicode mode. This change reflects that, based on some test262 test cases. R=littledan@chromium.org BUG=v8:2952 LOG=N Committed: https://crrev.com/e918c4ec464456a374098049ca22eac2107f6223 Cr-Commit-Position: refs/heads/master@{#33584} ========== to ========== [regexp] restrict pattern syntax for unicode mode. ES2015 Annex B.1.4 specifies a restricted pattern language for unicode mode. This change reflects that, based on some test262 test cases. R=littledan@chromium.org BUG=v8:2952 LOG=N Committed: https://crrev.com/e918c4ec464456a374098049ca22eac2107f6223 Cr-Commit-Position: refs/heads/master@{#33584} Committed: https://crrev.com/bb6a53573cd05786c0a6e4a229d57f63582161c8 Cr-Commit-Position: refs/heads/master@{#33603} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/bb6a53573cd05786c0a6e4a229d57f63582161c8 Cr-Commit-Position: refs/heads/master@{#33603} |