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

Issue 2502933002: [regexp] implement latest spec draft for property class. (Closed)

Created:
4 years, 1 month ago by Yang
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[regexp] implement latest spec draft for property class. See https://github.com/mathiasbynens/es-regexp-unicode-property-escapes Changes: - only allow General Category, binary properties, Script, and Script_Extensions. - implement Script_Extensions. R=littledan@chromium.org BUG=v8:4743 Committed: https://crrev.com/5beb5ee7e68e0e9925dcf49cf8626d7e82248bc6 Cr-Commit-Position: refs/heads/master@{#41091}

Patch Set 1 #

Patch Set 2 : fix test #

Total comments: 2

Patch Set 3 : update to 9.0.0 #

Patch Set 4 : fix issues #

Patch Set 5 : fix test #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+2887 lines, -52 lines) Patch
M src/regexp/regexp-parser.cc View 1 2 3 2 chunks +15 lines, -4 lines 4 comments Download
M test/mjsunit/harmony/regexp-property-blocks.js View 1 2 1 chunk +0 lines, -36 lines 0 comments Download
M test/mjsunit/harmony/regexp-property-enumerated.js View 1 2 3 4 2 chunks +8 lines, -11 lines 0 comments Download
M test/mjsunit/harmony/regexp-property-exact-match.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/regexp-property-general-category.js View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/regexp-property-invalid.js View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/regexp-property-script-extensions.js View 1 2 1 chunk +2821 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
Yang
4 years, 1 month ago (2016-11-15 12:41:45 UTC) #1
Dan Ehrenberg
lgtm Script_Extensions sounds much more useful than Script. I think it's good to stick with ...
4 years, 1 month ago (2016-11-16 17:54:52 UTC) #3
Yang
On 2016/11/16 17:54:52, Dan Ehrenberg wrote: > lgtm > > Script_Extensions sounds much more useful ...
4 years, 1 month ago (2016-11-17 09:08:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2502933002/40001
4 years, 1 month ago (2016-11-17 09:08:54 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/8090) v8_linux64_gyp_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-11-17 09:22:08 UTC) #9
Dan Ehrenberg
Jungshik, could you review the ICU API use?
4 years, 1 month ago (2016-11-17 09:25:21 UTC) #11
jungshik at Google
LGTM https://codereview.chromium.org/2502933002/diff/80001/src/regexp/regexp-parser.cc File src/regexp/regexp-parser.cc (right): https://codereview.chromium.org/2502933002/diff/80001/src/regexp/regexp-parser.cc#newcode1088 src/regexp/regexp-parser.cc:1088: // name lookup as if the property is ...
4 years, 1 month ago (2016-11-17 22:27:49 UTC) #24
Yang
https://codereview.chromium.org/2502933002/diff/80001/src/regexp/regexp-parser.cc File src/regexp/regexp-parser.cc (right): https://codereview.chromium.org/2502933002/diff/80001/src/regexp/regexp-parser.cc#newcode1088 src/regexp/regexp-parser.cc:1088: // name lookup as if the property is Script. ...
4 years, 1 month ago (2016-11-18 06:07:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2502933002/80001
4 years, 1 month ago (2016-11-18 06:07:32 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-18 06:09:31 UTC) #30
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/5beb5ee7e68e0e9925dcf49cf8626d7e82248bc6 Cr-Commit-Position: refs/heads/master@{#41091}
4 years, 1 month ago (2016-11-18 06:10:23 UTC) #32
jungshik at Google
4 years, 1 month ago (2016-11-18 22:28:37 UTC) #33
Message was sent while issue was closed.
On 2016/11/18 06:07:13, Yang wrote:
>
https://codereview.chromium.org/2502933002/diff/80001/src/regexp/regexp-parse...
> File src/regexp/regexp-parser.cc (right):
> 
>
https://codereview.chromium.org/2502933002/diff/80001/src/regexp/regexp-parse...
> src/regexp/regexp-parser.cc:1088: // name lookup as if the property is Script.
> On 2016/11/17 22:27:49, jungshik at google wrote:
> > Filed http://bugs.icu-project.org/trac/ticket/12856. 
> 
> Thanks.
> 
>
https://codereview.chromium.org/2502933002/diff/80001/src/regexp/regexp-parse...
> src/regexp/regexp-parser.cc:1102: USet* set = uset_openEmpty();
> On 2016/11/17 22:27:49, jungshik at google wrote:
> > Not for this CL, but I wonder if there is any reason to use C API here?
> virtuall
> > all uset_foo's are C wrappers over the corresponding C++ UnicodeSet API (in
> > common/unicode/uniset.h )
> 
> No reason. It's just the first one I came across. Maybe I should move them all
> over to the C++ API.

I see. In that case, moving over to C++ would be nice (a bit more performant in
this case and simpler/nicer in the code). 

FYI: http://icu-project.org/apiref/icu4c/ has a table listing major APIs in C
and C++. In some cases (like this one), C API is a wrapper over C++ API. For
others, the opposite is the case.

Powered by Google App Engine
This is Rietveld 408576698