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

Issue 9638014: Implement efficient element copying in ElementsAccessors. (Closed)

Created:
8 years, 9 months ago by danno
Modified:
8 years, 9 months ago
CC:
v8-dev
Visibility:
Public.

Description

Implement efficient element copying in ElementsAccessors. Committed: https://code.google.com/p/v8/source/detail?r=10989

Patch Set 1 #

Patch Set 2 : Unify elements copying routines #

Patch Set 3 : Fix bugs #

Patch Set 4 : Fix whitespace #

Patch Set 5 : Undo inlining #

Total comments: 24

Patch Set 6 : Review feedback #

Total comments: 4

Patch Set 7 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -236 lines) Patch
M src/builtins.cc View 1 2 7 chunks +19 lines, -37 lines 0 comments Download
M src/elements.h View 1 2 3 4 5 4 chunks +34 lines, -1 line 0 comments Download
M src/elements.cc View 1 2 3 4 5 6 25 chunks +362 lines, -88 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 2 chunks +11 lines, -110 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
danno
PTAL. Sven, can you take a look at the template usage. Jakob, please take a ...
8 years, 9 months ago (2012-03-08 17:25:11 UTC) #1
Sven Panne
LGTM with nits. Hairy stuff... o_O http://codereview.chromium.org/9638014/diff/3005/src/elements.cc File src/elements.cc (right): http://codereview.chromium.org/9638014/diff/3005/src/elements.cc#newcode610 src/elements.cc:610: static MaybeObject* CopyElementsImpl(FixedArrayBase* ...
8 years, 9 months ago (2012-03-09 08:15:18 UTC) #2
Jakob Kummerow
LGTM with comments. https://chromiumcodereview.appspot.com/9638014/diff/3005/src/elements.cc File src/elements.cc (right): https://chromiumcodereview.appspot.com/9638014/diff/3005/src/elements.cc#newcode65 src/elements.cc:65: // identical. Note that the order ...
8 years, 9 months ago (2012-03-09 10:09:33 UTC) #3
danno
http://codereview.chromium.org/9638014/diff/3005/src/elements.cc File src/elements.cc (right): http://codereview.chromium.org/9638014/diff/3005/src/elements.cc#newcode65 src/elements.cc:65: // identical. Note that the order must match that ...
8 years, 9 months ago (2012-03-09 12:12:35 UTC) #4
Michael Starzinger
LGTM (with one bug). I just looked at the write-barrier related stuff. https://chromiumcodereview.appspot.com/9638014/diff/9003/src/elements.cc File src/elements.cc ...
8 years, 9 months ago (2012-03-09 12:34:32 UTC) #5
danno
8 years, 9 months ago (2012-03-09 13:21:06 UTC) #6
Feedback addressed, landing

http://codereview.chromium.org/9638014/diff/9003/src/elements.cc
File src/elements.cc (right):

http://codereview.chromium.org/9638014/diff/9003/src/elements.cc#newcode222
src/elements.cc:222: if (!maybe_value->ToObject(&value)) {
On 2012/03/09 12:34:32, Michael Starzinger wrote:
> If you are sure that this can only fail because of an allocation failure, I
> would add an assertion like the following here.
> 
> ASSERT(maybe_value->IsRetryAfterGC() || maybe_value->IsOutOfMemory());

Done.

http://codereview.chromium.org/9638014/diff/9003/src/elements.cc#newcode225
src/elements.cc:225: heap->AllocateHeapNumber(from_obj->get_scalar(i), TENURED);
On 2012/03/09 12:34:32, Michael Starzinger wrote:
> Shouldn't this be "get_scalar(i + from_start)" here?

Done.

Powered by Google App Engine
This is Rietveld 408576698