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

Issue 3158020: Use Copy-on-write arrays for cached regexp results. (Closed)

Created:
10 years, 4 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
Vitaly Repeshko
CC:
v8-dev, sandholm
Visibility:
Public.

Description

Use Copy-on-write arrays for cached regexp results.

Patch Set 1 #

Total comments: 32

Patch Set 2 : Addressed review comments. #

Patch Set 3 : Changed comments. #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -127 lines) Patch
M src/arm/codegen-arm.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/arm/codegen-arm.cc View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 1 chunk +8 lines, -0 lines 4 comments Download
M src/arm/simulator-arm.cc View 2 chunks +7 lines, -1 line 0 comments Download
M src/codegen.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/full-codegen.h View 1 chunk +5 lines, -36 lines 0 comments Download
M src/full-codegen.cc View 1 chunk +10 lines, -73 lines 0 comments Download
M src/ia32/codegen-ia32.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 chunks +101 lines, -2 lines 2 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/regexp.js View 3 chunks +2 lines, -13 lines 0 comments Download
M src/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 1 chunk +59 lines, -0 lines 2 comments Download
M src/x64/codegen-x64.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 3 chunks +90 lines, -2 lines 2 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M test/mjsunit/regexp.js View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein
Medium size, but not very complicated, review.
10 years, 4 months ago (2010-08-18 15:31:25 UTC) #1
Vitaly Repeshko
LGTM with comments. -- Vitaly http://codereview.chromium.org/3158020/diff/1/2 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/3158020/diff/1/2#newcode5301 src/arm/codegen-arm.cc:5301: __ ldm(ib, r0, r3.bit() ...
10 years, 4 months ago (2010-08-18 16:39:02 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/3158020/diff/1/2 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/3158020/diff/1/2#newcode5301 src/arm/codegen-arm.cc:5301: __ ldm(ib, r0, r3.bit() | r4.bit() | r5.bit() | ...
10 years, 4 months ago (2010-08-20 09:31:34 UTC) #3
Vitaly Repeshko
LGTM. There's one more requirement to making an array copy-on-write that should be documented somewhere: ...
10 years, 4 months ago (2010-08-20 13:29:49 UTC) #4
Lasse Reichstein
Is the restriction on having only simple values really necessary, as long as you only ...
10 years, 4 months ago (2010-08-23 12:52:11 UTC) #5
Vitaly Repeshko
10 years, 4 months ago (2010-08-23 13:17:45 UTC) #6
On 2010/08/23 12:52:11, Lasse Reichstein wrote:
> Is the restriction on having only simple values really necessary, as long as
you
> only expect a shallow copy?

If only a shallow copy is expected, then this restriction does not apply. When
deep copying is required (as is the case with literals), non-primitive elements
make it possible to write somewhere into the tree rooted at the array without it
noticing the update and cloning its elements.


-- Vitaly

Powered by Google App Engine
This is Rietveld 408576698