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

Issue 2668703002: [stubs] Add RegExpReplace and RegExpSplit stubs (Closed)

Created:
3 years, 10 months ago by jgruber
Modified:
3 years, 10 months ago
Reviewers:
Igor Sheludko
CC:
v8-reviews_googlegroups.com, Benedikt Meurer
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[stubs] Add RegExpReplace and RegExpSplit stubs This adds helper stubs for RegExp split and replace operations, called directly by both RegExpPrototype{Replace,Split} and StringPrototype{Replace,Split}. BUG= Review-Url: https://codereview.chromium.org/2668703002 Cr-Commit-Position: refs/heads/master@{#42919} Committed: https://chromium.googlesource.com/v8/v8/+/082bf30604a357bc318a627165b4d6f7ea097006

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix representation #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : BranchIfFastRegExp/IsFastRegExpMap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -100 lines) Patch
M src/builtins/builtins.h View 1 chunk +6 lines, -2 lines 0 comments Download
M src/builtins/builtins-regexp.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M src/builtins/builtins-regexp.cc View 1 2 3 4 6 chunks +129 lines, -91 lines 0 comments Download
M src/builtins/builtins-string.cc View 1 2 3 4 3 chunks +21 lines, -5 lines 0 comments Download
M src/code-factory.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/code-factory.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/interface-descriptors.h View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (25 generated)
jgruber
Hey Igor, ptal. This adds fast paths for when String.p.{replace,split} are called with a regexp ...
3 years, 10 months ago (2017-02-02 11:41:39 UTC) #16
Igor Sheludko
lgtm if you revert BranchIfFastRegExp() -> Branch(IsFastRegExp()...) changes. https://codereview.chromium.org/2668703002/diff/60001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2668703002/diff/60001/src/builtins/builtins-regexp.cc#newcode427 src/builtins/builtins-regexp.cc:427: Variable ...
3 years, 10 months ago (2017-02-03 09:17:54 UTC) #19
jgruber
https://codereview.chromium.org/2668703002/diff/60001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2668703002/diff/60001/src/builtins/builtins-regexp.cc#newcode427 src/builtins/builtins-regexp.cc:427: Variable var_result(this, MachineRepresentation::kWord32, Int32Constant(0)); On 2017/02/03 09:17:54, Igor Sheludko ...
3 years, 10 months ago (2017-02-03 10:29:28 UTC) #24
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/2668703002/80001
3 years, 10 months ago (2017-02-03 10:29:51 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 10:31:38 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/082bf30604a357bc318a627165b4d6f7ea0...

Powered by Google App Engine
This is Rietveld 408576698