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

Issue 1419823010: Implement flag and source getters on RegExp.prototype. (Closed)

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

Description

Implement flag and source getters on RegExp.prototype. R=littledan@chromium.org BUG=v8:3715, v8:4528 LOG=Y Committed: https://crrev.com/60e8877e161fe6175e19fafce2d6ed1c3999cdb1 Cr-Commit-Position: refs/heads/master@{#31753} Committed: https://crrev.com/b5c80a31ad266eb38a0cf2ff756be59c66d34aa5 Cr-Commit-Position: refs/heads/master@{#31773} Committed: https://crrev.com/85494e90bb63a3a9e19a1bf862cb6bfcb0162ee9 Cr-Commit-Position: refs/heads/master@{#31782} Committed: https://crrev.com/152163c1646b45f5fc5d31a4ec2eb55d7f4a2ffc Cr-Commit-Position: refs/heads/master@{#31804} Committed: https://crrev.com/2237ba0dba22841e29e2fba877f4f9cd0f23eff7 Cr-Commit-Position: refs/heads/master@{#31824}

Patch Set 1 #

Patch Set 2 : fix windows build #

Total comments: 3

Patch Set 3 : addressed comments #

Patch Set 4 : fix most of the perf regression #

Patch Set 5 : fix #

Patch Set 6 : actual fix #

Patch Set 7 : fix error reporting and function names. #

Patch Set 8 : make return values boolean #

Patch Set 9 : fix exporting flags symbol #

Patch Set 10 : new webkit expectations #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -189 lines) Patch
M include/v8.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 2 chunks +5 lines, -22 lines 1 comment Download
M src/heap/heap.h View 1 2 3 4 5 6 7 8 6 chunks +2 lines, -5 lines 0 comments Download
M src/js/harmony-regexp.js View 1 2 3 4 5 6 7 8 3 chunks +34 lines, -4 lines 0 comments Download
M src/js/macros.py View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M src/js/prologue.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/js/regexp.js View 1 2 3 4 5 6 7 10 chunks +79 lines, -30 lines 0 comments Download
M src/js/string.js View 4 chunks +4 lines, -3 lines 0 comments Download
M src/js/symbol.js View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M src/messages.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M src/runtime/runtime-regexp.cc View 1 2 chunks +8 lines, -29 lines 0 comments Download
A test/mjsunit/es6/regexp-flags.js View 1 2 3 4 5 6 7 1 chunk +64 lines, -0 lines 0 comments Download
M test/mjsunit/mirror-regexp.js View 3 chunks +21 lines, -32 lines 0 comments Download
M test/mjsunit/regexp.js View 1 2 1 chunk +18 lines, -12 lines 0 comments Download
M test/mjsunit/regress/regress-447561.js View 1 chunk +4 lines, -4 lines 0 comments Download
M test/test262/test262.status View 1 2 3 5 chunks +0 lines, -36 lines 0 comments Download
M test/webkit/fast/regex/toString-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M tools/js2c.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 84 (35 generated)
Yang
5 years, 1 month ago (2015-10-30 13:28:40 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/1419823010/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/1
5 years, 1 month ago (2015-10-30 13:29:16 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel/builds/10258)
5 years, 1 month ago (2015-10-30 14:10:32 UTC) #5
Yang
Ulan, please take a look at the heap changes.
5 years, 1 month ago (2015-10-30 14:20:22 UTC) #8
Yang
Jochen, please look at the changes to src/include
5 years, 1 month ago (2015-10-30 14:21:02 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/2 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/2
5 years, 1 month ago (2015-10-30 14:22:34 UTC) #12
jochen (gone - plz use gerrit)
lgtm
5 years, 1 month ago (2015-10-30 14:23:08 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-30 15:36:54 UTC) #15
Yang
On 2015/10/30 15:36:54, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years, 1 month ago (2015-11-02 10:27:14 UTC) #16
Dan Ehrenberg
Looks good, just a couple nits. https://codereview.chromium.org/1419823010/diff/2/src/js/macros.py File src/js/macros.py (right): https://codereview.chromium.org/1419823010/diff/2/src/js/macros.py#newcode181 src/js/macros.py:181: macro REGEXP_GLOBAL(regexp) = ...
5 years, 1 month ago (2015-11-02 19:21:06 UTC) #17
Yang
https://codereview.chromium.org/1419823010/diff/2/src/js/macros.py File src/js/macros.py (right): https://codereview.chromium.org/1419823010/diff/2/src/js/macros.py#newcode181 src/js/macros.py:181: macro REGEXP_GLOBAL(regexp) = (regexp[regExpFlagsSymbol] & 1); On 2015/11/02 19:21:06, ...
5 years, 1 month ago (2015-11-02 20:51:09 UTC) #18
Dan Ehrenberg
On 2015/11/02 at 20:51:09, yangguo wrote: > https://codereview.chromium.org/1419823010/diff/2/src/js/macros.py > File src/js/macros.py (right): > > https://codereview.chromium.org/1419823010/diff/2/src/js/macros.py#newcode181 ...
5 years, 1 month ago (2015-11-02 20:59:21 UTC) #19
Yang
On 2015/11/02 20:59:21, Dan Ehrenberg wrote: > On 2015/11/02 at 20:51:09, yangguo wrote: > > ...
5 years, 1 month ago (2015-11-03 07:48:06 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/50001
5 years, 1 month ago (2015-11-03 07:48:24 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-03 08:11:54 UTC) #24
Dan Ehrenberg
lgtm
5 years, 1 month ago (2015-11-03 15:45:58 UTC) #25
Dan Ehrenberg
lgtm
5 years, 1 month ago (2015-11-03 15:46:02 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/50001
5 years, 1 month ago (2015-11-03 16:15:35 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:50001)
5 years, 1 month ago (2015-11-03 16:17:01 UTC) #30
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/60e8877e161fe6175e19fafce2d6ed1c3999cdb1 Cr-Commit-Position: refs/heads/master@{#31753}
5 years, 1 month ago (2015-11-03 16:17:13 UTC) #31
Michael Achenbach
A revert of this CL (patchset #3 id:50001) has been created in https://codereview.chromium.org/1427733005/ by machenbach@chromium.org. ...
5 years, 1 month ago (2015-11-03 17:27:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/50001
5 years, 1 month ago (2015-11-04 08:49:23 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/50001
5 years, 1 month ago (2015-11-04 08:55:17 UTC) #38
commit-bot: I haz the power
Committed patchset #3 (id:50001)
5 years, 1 month ago (2015-11-04 09:10:51 UTC) #39
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/b5c80a31ad266eb38a0cf2ff756be59c66d34aa5 Cr-Commit-Position: refs/heads/master@{#31773}
5 years, 1 month ago (2015-11-04 09:11:27 UTC) #40
Yang
A revert of this CL (patchset #3 id:50001) has been created in https://codereview.chromium.org/1409013006/ by yangguo@chromium.org. ...
5 years, 1 month ago (2015-11-04 10:57:36 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/70001
5 years, 1 month ago (2015-11-04 11:54:13 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/90001
5 years, 1 month ago (2015-11-04 12:00:53 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/110001
5 years, 1 month ago (2015-11-04 12:12:58 UTC) #52
commit-bot: I haz the power
Committed patchset #6 (id:110001)
5 years, 1 month ago (2015-11-04 12:28:21 UTC) #53
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/85494e90bb63a3a9e19a1bf862cb6bfcb0162ee9 Cr-Commit-Position: refs/heads/master@{#31782}
5 years, 1 month ago (2015-11-04 12:28:55 UTC) #54
Michael Hablich
A revert of this CL (patchset #6 id:110001) has been created in https://codereview.chromium.org/1432683002/ by hablich@chromium.org. ...
5 years, 1 month ago (2015-11-04 17:56:27 UTC) #55
Yang
On 2015/11/04 17:56:27, Hablich wrote: > A revert of this CL (patchset #6 id:110001) has ...
5 years, 1 month ago (2015-11-04 19:52:07 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/110001
5 years, 1 month ago (2015-11-04 20:40:31 UTC) #59
Yang
On 2015/11/04 19:52:07, Yang wrote: > On 2015/11/04 17:56:27, Hablich wrote: > > A revert ...
5 years, 1 month ago (2015-11-04 20:40:41 UTC) #60
commit-bot: I haz the power
Committed patchset #6 (id:110001)
5 years, 1 month ago (2015-11-04 20:42:22 UTC) #61
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/152163c1646b45f5fc5d31a4ec2eb55d7f4a2ffc Cr-Commit-Position: refs/heads/master@{#31804}
5 years, 1 month ago (2015-11-04 20:42:48 UTC) #62
Yang
A revert of this CL (patchset #6 id:110001) has been created in https://codereview.chromium.org/1426413002/ by yangguo@chromium.org. ...
5 years, 1 month ago (2015-11-05 09:07:55 UTC) #63
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/150001
5 years, 1 month ago (2015-11-05 10:35:28 UTC) #66
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/11550)
5 years, 1 month ago (2015-11-05 10:47:52 UTC) #68
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/170001
5 years, 1 month ago (2015-11-05 11:34:47 UTC) #70
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_rel/builds/11495)
5 years, 1 month ago (2015-11-05 11:46:09 UTC) #72
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/190001
5 years, 1 month ago (2015-11-05 12:13:59 UTC) #74
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-05 12:38:07 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419823010/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419823010/190001
5 years, 1 month ago (2015-11-05 13:00:37 UTC) #79
commit-bot: I haz the power
Committed patchset #10 (id:190001)
5 years, 1 month ago (2015-11-05 13:08:45 UTC) #80
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/2237ba0dba22841e29e2fba877f4f9cd0f23eff7 Cr-Commit-Position: refs/heads/master@{#31824}
5 years, 1 month ago (2015-11-05 13:09:06 UTC) #81
Igor Sheludko
https://codereview.chromium.org/1419823010/diff/190001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1419823010/diff/190001/src/bootstrapper.cc#newcode1228 src/bootstrapper.cc:1228: Map::EnsureDescriptorSlack(initial_map, 5); DBC: shouldn't it now reserve only 3 ...
5 years, 1 month ago (2015-11-06 19:34:34 UTC) #83
Yang
5 years, 1 month ago (2015-11-06 20:49:44 UTC) #84
Message was sent while issue was closed.
On 2015/11/06 19:34:34, Igor Sheludko wrote:
> https://codereview.chromium.org/1419823010/diff/190001/src/bootstrapper.cc
> File src/bootstrapper.cc (right):
> 
>
https://codereview.chromium.org/1419823010/diff/190001/src/bootstrapper.cc#ne...
> src/bootstrapper.cc:1228: Map::EnsureDescriptorSlack(initial_map, 5);
> DBC: shouldn't it now reserve only 3 entries?

Yes. I fixed this in a follow-up here:
https://codereview.chromium.org/1428203003/diff/80001/src/bootstrapper.cc
(I changed it to reserve only 1 entry because we don't use private symbols as
keys for internal slots anymore).

Powered by Google App Engine
This is Rietveld 408576698