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

Issue 2540153002: [regexp] Refactor RegExp.prototype.exec (Closed)

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

Description

[regexp] Refactor RegExp.prototype.exec This refactors portions of exec into a new function without RegExpResult construction, which will be used in the future by test, @@match, and @@search fast paths. Unnecessary ToString and ToLength calls as well as repeated map checks were removed. BUG=v8:5339 Committed: https://crrev.com/65b2ab90ff1cbc90f73568c7ec9d72cb760ac6c8 Cr-Commit-Position: refs/heads/master@{#41414}

Patch Set 1 #

Patch Set 2 : Assert String/RegExp #

Total comments: 4

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -125 lines) Patch
M src/builtins/builtins-regexp.cc View 1 2 21 chunks +146 lines, -125 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (13 generated)
jgruber
4 years ago (2016-11-30 14:39:44 UTC) #9
Igor Sheludko
Nice cleanup! lgtm https://codereview.chromium.org/2540153002/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2540153002/diff/20001/src/builtins/builtins-regexp.cc#newcode300 src/builtins/builtins-regexp.cc:300: Node* Generate_RegExpPrototypeExecBodyWithoutResult( Please add a comment ...
4 years ago (2016-11-30 22:04:21 UTC) #10
Igor Sheludko
https://codereview.chromium.org/2540153002/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2540153002/diff/20001/src/builtins/builtins-regexp.cc#newcode427 src/builtins/builtins-regexp.cc:427: Node* Generate_RegExpPrototypeExecBody(CodeStubAssembler* a, I think you can drop the ...
4 years ago (2016-11-30 22:12:08 UTC) #11
jgruber
https://codereview.chromium.org/2540153002/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2540153002/diff/20001/src/builtins/builtins-regexp.cc#newcode300 src/builtins/builtins-regexp.cc:300: Node* Generate_RegExpPrototypeExecBodyWithoutResult( On 2016/11/30 22:04:21, Igor Sheludko wrote: > ...
4 years ago (2016-12-01 09:09:09 UTC) #12
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/2540153002/40001
4 years ago (2016-12-01 09:09:26 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-01 09:35:54 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-01 09:36:14 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/65b2ab90ff1cbc90f73568c7ec9d72cb760ac6c8
Cr-Commit-Position: refs/heads/master@{#41414}

Powered by Google App Engine
This is Rietveld 408576698