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 2551443002: [regexp] Migrate constructor and compile to CSA (Closed)

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

Description

[regexp] Migrate constructor and compile to CSA Microbenchmarks show 25% improvement over C++, 11% improvement over JS for the constructor. We don't have a microbenchmark covering the compile method. Locally, octane/regexp improved by 2%. BUG=v8:5339 Committed: https://crrev.com/28cc20eeadcfd59f0c050b5dec18c2781be1eb33 Cr-Commit-Position: refs/heads/master@{#41490}

Patch Set 1 #

Patch Set 2 : Remove unused variables #

Total comments: 28

Patch Set 3 : Address comments #

Total comments: 8

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -260 lines) Patch
M src/bootstrapper.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M src/builtins/builtins.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/builtins/builtins-regexp.cc View 1 2 3 2 chunks +353 lines, -249 lines 0 comments Download
M src/code-stub-assembler.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/regexp/regexp-utils.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-regexp.cc View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (24 generated)
jgruber
First part of a series. 1. RegExp ctor and compile 2. New TF_BUILTIN style Pt. ...
4 years ago (2016-12-02 14:11:35 UTC) #10
Igor Sheludko
First round of comments. https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc#newcode457 src/builtins/builtins-regexp.cc:457: #define CASE_FOR_FLAG(FLAG, LABEL, NEXT_LABEL) \ ...
4 years ago (2016-12-05 09:35:51 UTC) #14
Igor Sheludko
https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc#newcode712 src/builtins/builtins-regexp.cc:712: Callable getproperty_callable = CodeFactory::GetProperty(isolate); I guess you are going ...
4 years ago (2016-12-05 11:28:14 UTC) #15
Igor Sheludko
https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc#newcode602 src/builtins/builtins-regexp.cc:602: a->Branch(a->IsUndefined(maybe_pattern), &if_isundefined, &if_notundefined); On 2016/12/05 09:35:51, Igor Sheludko wrote: ...
4 years ago (2016-12-05 11:35:14 UTC) #16
jgruber
Thanks for the review. Comments addressed, PTAL. https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc#newcode457 src/builtins/builtins-regexp.cc:457: #define CASE_FOR_FLAG(FLAG, ...
4 years ago (2016-12-05 12:28:48 UTC) #19
Igor Sheludko
lgtm with nits: https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2551443002/diff/20001/src/builtins/builtins-regexp.cc#newcode728 src/builtins/builtins-regexp.cc:728: &if_patternisfastregexp); On 2016/12/05 12:28:48, jgruber wrote: ...
4 years ago (2016-12-05 12:43:41 UTC) #20
jgruber
https://codereview.chromium.org/2551443002/diff/40001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2551443002/diff/40001/src/builtins/builtins-regexp.cc#newcode580 src/builtins/builtins-regexp.cc:580: a->IsUndefined(maybe_pattern), [&] { return a->EmptyStringConstant(); }, On 2016/12/05 12:43:41, ...
4 years ago (2016-12-05 13:27:14 UTC) #25
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/2551443002/60001
4 years ago (2016-12-05 13:45:28 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-05 13:50:35 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-05 13:50:57 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/28cc20eeadcfd59f0c050b5dec18c2781be1eb33
Cr-Commit-Position: refs/heads/master@{#41490}

Powered by Google App Engine
This is Rietveld 408576698