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

Issue 2764343004: [regexp] Named capture support for callable replacements (Closed)

Created:
3 years, 9 months ago by jgruber
Modified:
3 years, 9 months ago
Reviewers:
Dan Ehrenberg, Yang
CC:
v8-reviews_googlegroups.com, mathias
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[regexp] Named capture support for callable replacements This implements support for named captures in RegExp.prototype[@@replace] for when the replaceValue is callable. In that case, the result.groups object is passed to the replacer function as the last argument. BUG=v8:5437 Review-Url: https://codereview.chromium.org/2764343004 Cr-Commit-Position: refs/heads/master@{#44142} Committed: https://chromium.googlesource.com/v8/v8/+/80879b8c26818913f03cb5ec413e764fc39b498e

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase, address comments, update for spec changes #

Patch Set 3 : Final tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -27 lines) Patch
M src/objects.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/runtime/runtime-regexp.cc View 1 11 chunks +111 lines, -27 lines 0 comments Download
M test/mjsunit/harmony/regexp-named-captures.js View 1 1 chunk +112 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (14 generated)
jgruber
3 years, 9 months ago (2017-03-23 11:36:16 UTC) #4
Yang
LGTM. Awesome. https://codereview.chromium.org/2764343004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2764343004/diff/1/src/objects.cc#newcode6576 src/objects.cc:6576: Maybe<bool> JSReceiver::CreateDataProperty(Handle<JSReceiver> holder, Does JSObject::AddProperty not fit ...
3 years, 9 months ago (2017-03-23 14:58:22 UTC) #7
jgruber
https://codereview.chromium.org/2764343004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2764343004/diff/1/src/objects.cc#newcode6576 src/objects.cc:6576: Maybe<bool> JSReceiver::CreateDataProperty(Handle<JSReceiver> holder, On 2017/03/23 14:58:22, Yang wrote: > ...
3 years, 9 months ago (2017-03-24 14:06:46 UTC) #8
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/2764343004/40001
3 years, 9 months ago (2017-03-27 10:51:49 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 11:18:38 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/80879b8c26818913f03cb5ec413e764fc39...

Powered by Google App Engine
This is Rietveld 408576698