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

Issue 2384613004: [regexp] Port RegExpConstructor to C++ (Closed)

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

Description

[regexp] Port RegExpConstructor to C++ This moves the RegExp constructor to C++. Local runs of octane/regexp are performance-neutral: C++: 4970.1 +- 404.981 JS: 4869.2 +- 586.743 That's probably only the case because exec and replace dominate octane/regexp. There's potential for improvement here, for instance by adding a fast-path if new.target is an unmodified JSRegExp function. BUG=v8:5339 Committed: https://crrev.com/d515156441fcdbb981fb6fde03bc6a72ce40ea72 Cr-Commit-Position: refs/heads/master@{#39981}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Patch Set 3 : Remove receiver check for new target #

Patch Set 4 : TODOs and a minor optimization #

Total comments: 2

Patch Set 5 : Don't use incremental string builder for flags #

Patch Set 6 : Don't use incremental string builder for flags #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -49 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 2 chunks +16 lines, -12 lines 0 comments Download
M src/builtins/builtins.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M src/builtins/builtins-regexp.cc View 1 2 3 4 5 1 chunk +147 lines, -0 lines 0 comments Download
M src/heap-symbols.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/js/regexp.js View 2 chunks +0 lines, -34 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
jgruber
4 years, 2 months ago (2016-09-30 11:15:12 UTC) #4
Benedikt Meurer
https://codereview.chromium.org/2384613004/diff/1/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2384613004/diff/1/src/builtins/builtins-regexp.cc#newcode111 src/builtins/builtins-regexp.cc:111: if (*pattern_constructor == *new_target) { Nit: use is_identical_to here ...
4 years, 2 months ago (2016-09-30 11:25:24 UTC) #5
jgruber
PTAL https://codereview.chromium.org/2384613004/diff/1/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2384613004/diff/1/src/builtins/builtins-regexp.cc#newcode111 src/builtins/builtins-regexp.cc:111: if (*pattern_constructor == *new_target) { On 2016/09/30 11:25:24, ...
4 years, 2 months ago (2016-10-04 12:25:22 UTC) #8
Benedikt Meurer
Nice, LGTM from my side.
4 years, 2 months ago (2016-10-05 05:53:30 UTC) #12
Yang
LGTM. Nice. https://codereview.chromium.org/2384613004/diff/60001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2384613004/diff/60001/src/builtins/builtins-regexp.cc#newcode42 src/builtins/builtins-regexp.cc:42: IncrementalStringBuilder builder(isolate); Using the IncrementalStringBuilder is a ...
4 years, 2 months ago (2016-10-05 07:40:34 UTC) #13
jgruber
https://codereview.chromium.org/2384613004/diff/60001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2384613004/diff/60001/src/builtins/builtins-regexp.cc#newcode42 src/builtins/builtins-regexp.cc:42: IncrementalStringBuilder builder(isolate); On 2016/10/05 07:40:34, Yang wrote: > Using ...
4 years, 2 months ago (2016-10-05 08:37:03 UTC) #20
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/2384613004/120001
4 years, 2 months ago (2016-10-05 08:42:57 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-05 09:13:08 UTC) #25
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 09:13:47 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d515156441fcdbb981fb6fde03bc6a72ce40ea72
Cr-Commit-Position: refs/heads/master@{#39981}

Powered by Google App Engine
This is Rietveld 408576698