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

Issue 567313003: RegExp: Add support for the ES6-proposed sticky flag (Closed)

Created:
6 years, 3 months ago by Erik Corry
Modified:
6 years ago
Reviewers:
rossberg, Yang, mathias
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

RegExp: Add support for the ES6-proposed sticky flag R=yangguo@chromium.org, rossberg@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=24031

Patch Set 1 #

Patch Set 2 : Add tests #

Total comments: 12

Patch Set 3 : Fix update of lastIndex for sticky regexps #

Patch Set 4 : Use variable on builtins object instead of runtime call to get value of --harmony-regexps flag from… #

Patch Set 5 : Fix typo #

Patch Set 6 : Add test of ^ behaviour in sticky regexp #

Total comments: 2

Patch Set 7 : Fix the way we add a property to builtins #

Patch Set 8 : Add missing test of --harmony-regexps flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -55 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M src/compilation-cache.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/flag-definitions.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/jsregexp.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/jsregexp.cc View 1 2 3 4 5 5 chunks +11 lines, -5 lines 0 comments Download
M src/objects.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M src/regexp.js View 1 2 3 8 chunks +21 lines, -10 lines 0 comments Download
M src/runtime.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 7 4 chunks +15 lines, -3 lines 0 comments Download
M test/cctest/test-regexp.cc View 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/harmony/regexp-sticky.js View 1 2 3 4 5 1 chunk +132 lines, -0 lines 0 comments Download
A + test/mjsunit/regexp-not-sticky-yet.js View 1 2 3 4 5 6 7 1 chunk +30 lines, -31 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
Erik Corry
6 years, 3 months ago (2014-09-15 08:51:39 UTC) #1
Erik Corry
The 'y' flag has been supported by Firefox for a long time. It makes a ...
6 years, 3 months ago (2014-09-15 08:54:33 UTC) #2
Erik Corry
On 2014/09/15 08:54:33, Erik Corry wrote: > The 'y' flag has been supported by Firefox ...
6 years, 3 months ago (2014-09-15 09:05:58 UTC) #3
Yang
Looking good. I got some suggestions. And also what seems to be missing is updating ...
6 years, 3 months ago (2014-09-15 09:23:16 UTC) #4
mathias
https://codereview.chromium.org/567313003/diff/20001/src/runtime.cc File src/runtime.cc (right): https://codereview.chromium.org/567313003/diff/20001/src/runtime.cc#newcode2600 src/runtime.cc:2600: // space for the 'sticky' flag, since is from ...
6 years, 3 months ago (2014-09-15 15:19:10 UTC) #6
Erik Corry
https://codereview.chromium.org/567313003/diff/20001/src/jsregexp.cc File src/jsregexp.cc (right): https://codereview.chromium.org/567313003/diff/20001/src/jsregexp.cc#newcode6064 src/jsregexp.cc:6064: // this expression is anchored at the beginning. On ...
6 years, 3 months ago (2014-09-16 17:49:40 UTC) #7
Yang
LGT with one comment. https://codereview.chromium.org/567313003/diff/100001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/567313003/diff/100001/src/bootstrapper.cc#newcode1423 src/bootstrapper.cc:1423: v8::False(external_isolate); Let's not unnecessarily use ...
6 years, 3 months ago (2014-09-17 07:16:15 UTC) #8
Yang
On 2014/09/17 07:16:15, Yang wrote: > LGT with one comment. > > https://codereview.chromium.org/567313003/diff/100001/src/bootstrapper.cc > File ...
6 years, 3 months ago (2014-09-17 07:16:40 UTC) #9
Erik Corry
https://codereview.chromium.org/567313003/diff/100001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/567313003/diff/100001/src/bootstrapper.cc#newcode1423 src/bootstrapper.cc:1423: v8::False(external_isolate); On 2014/09/17 07:16:14, Yang wrote: > Let's not ...
6 years, 3 months ago (2014-09-17 17:06:19 UTC) #10
Erik Corry
Committed patchset #8 (id:140001) manually as 24031 (presubmit successful).
6 years, 3 months ago (2014-09-18 11:34:50 UTC) #11
marja
Post-commit comment: RegExpMirror seems to contain the other flags, why is the sticky flag not ...
6 years ago (2014-12-18 14:01:19 UTC) #12
Erik Corry
6 years ago (2014-12-18 14:19:37 UTC) #13
Message was sent while issue was closed.
On 2014/12/18 14:01:19, marja (ooo until Jan 7th) wrote:
> Post-commit comment: RegExpMirror seems to contain the other flags, why is the
> sticky flag not added there?

It's a bug, I think.

Powered by Google App Engine
This is Rietveld 408576698