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

Issue 2415663007: [regexp] RegExp.prototype.replace fast-paths (Closed)

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

Description

[regexp] RegExp.prototype.replace fast-paths This CL adds two new fast-paths for RegExp.prototype.replace in the case that the regexp itself is an unmodified JSRegExp instance and the replace argument is callable. Such cases call directly into runtime. This could be improved even further by turning the relevant runtime functions into inline TurboFan. BUG=v8:5339 Committed: https://crrev.com/7a75f34b20487f72f2de9baf7cd5871fe925c969 Cr-Commit-Position: refs/heads/master@{#40381}

Patch Set 1 #

Patch Set 2 : Set lastIndex for global RegExps #

Patch Set 3 : Remove unused variable #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -23 lines) Patch
M src/builtins/builtins-regexp.cc View 1 2 7 chunks +47 lines, -10 lines 2 comments Download
M src/runtime/runtime.h View 1 chunk +15 lines, -13 lines 0 comments Download
M src/runtime/runtime-regexp.cc View 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (15 generated)
jgruber
This is a first step towards faster replace with functional args. The next step is ...
4 years, 2 months ago (2016-10-15 18:23:18 UTC) #14
Yang
lgtm https://codereview.chromium.org/2415663007/diff/40001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2415663007/diff/40001/src/builtins/builtins-regexp.cc#newcode794 src/builtins/builtins-regexp.cc:794: a->Return(a->Select(is_flag_set, a->TrueConstant(), a->FalseConstant())); On 2016/10/15 18:23:18, jgruber wrote: ...
4 years, 2 months ago (2016-10-17 13:30:54 UTC) #15
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/2415663007/40001
4 years, 2 months ago (2016-10-18 06:47:14 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-18 07:15:42 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 07:16:24 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7a75f34b20487f72f2de9baf7cd5871fe925c969
Cr-Commit-Position: refs/heads/master@{#40381}

Powered by Google App Engine
This is Rietveld 408576698