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

Issue 2556773002: [regexp] Shrink results array in @@match and @@split (Closed)

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

Description

[regexp] Shrink results array in @@match and @@split Both @@match and @@split internally use dynamically growing fixed arrays. Shrink to fit when wrapping these in a JSArray to avoid excessive memory usage. BUG=chromium:670205, chromium:670708 Committed: https://crrev.com/40e176056d9640635d3bbc9f4e63b50ccc9057bc Cr-Commit-Position: refs/heads/master@{#41550}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments #

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

Messages

Total messages: 25 (16 generated)
jgruber
4 years ago (2016-12-07 07:27:48 UTC) #6
Igor Sheludko
lgtm https://codereview.chromium.org/2556773002/diff/1/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2556773002/diff/1/src/builtins/builtins-regexp.cc#newcode1475 src/builtins/builtins-regexp.cc:1475: Node* ResizeFixedArray(Node* const element_count, Node* const new_capacity, Maybe ...
4 years ago (2016-12-07 08:14:27 UTC) #9
jgruber
https://codereview.chromium.org/2556773002/diff/1/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2556773002/diff/1/src/builtins/builtins-regexp.cc#newcode1475 src/builtins/builtins-regexp.cc:1475: Node* ResizeFixedArray(Node* const element_count, Node* const new_capacity, On 2016/12/07 ...
4 years ago (2016-12-07 08:26:48 UTC) #10
Igor Sheludko
https://codereview.chromium.org/2556773002/diff/1/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2556773002/diff/1/src/builtins/builtins-regexp.cc#newcode1475 src/builtins/builtins-regexp.cc:1475: Node* ResizeFixedArray(Node* const element_count, Node* const new_capacity, On 2016/12/07 ...
4 years ago (2016-12-07 08:37:25 UTC) #11
Yang
On 2016/12/07 08:37:25, Igor Sheludko wrote: > https://codereview.chromium.org/2556773002/diff/1/src/builtins/builtins-regexp.cc > File src/builtins/builtins-regexp.cc (right): > > https://codereview.chromium.org/2556773002/diff/1/src/builtins/builtins-regexp.cc#newcode1475 ...
4 years ago (2016-12-07 09:14:30 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/2556773002/20001
4 years ago (2016-12-07 11:41:44 UTC) #17
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/2556773002/20001
4 years ago (2016-12-07 13:03:37 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-07 13:05:37 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-07 13:06:01 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/40e176056d9640635d3bbc9f4e63b50ccc9057bc
Cr-Commit-Position: refs/heads/master@{#41550}

Powered by Google App Engine
This is Rietveld 408576698