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

Issue 19289009: Fix invalid array length check in TransitionElementsKindStub. (Closed)

Created:
7 years, 5 months ago by Benedikt Meurer
Modified:
7 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix invalid array length check in TransitionElementsKindStub. The stub used to check the length of the JS array to see if there's a need to duplicate the elements backing store. This way it will not duplicate the elements array when going from double to object even if the elements array is not the empty fixed array. Later on it will then store pointers into a FixedDoubleArray. The native code stub used to check whether elements points to the empty_fixed_array singleton instead of testing the length. The Hydrogen stub does that as well now. R=danno@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15701

Patch Set 1 #

Total comments: 1

Patch Set 2 : Cleanup #

Patch Set 3 : Addressed comments #

Patch Set 4 : Add test case. #

Patch Set 5 : REBASE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -8 lines) Patch
M src/code-stubs-hydrogen.cc View 1 2 1 chunk +10 lines, -8 lines 0 comments Download
A test/mjsunit/transition-elements-kind.js View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Benedikt Meurer
7 years, 5 months ago (2013-07-16 12:08:02 UTC) #1
mvstanton
Hi Benedikt, I think there might be one issue, have a look. thanks, -Michael https://codereview.chromium.org/19289009/diff/1/src/code-stubs-hydrogen.cc ...
7 years, 5 months ago (2013-07-16 13:01:07 UTC) #2
Dmitry Lomov (no reviews)
Also, I think the regression test is in order.
7 years, 5 months ago (2013-07-16 13:13:02 UTC) #3
mvstanton
My previous comment is wrong in the specifics: we are careful in the code to ...
7 years, 5 months ago (2013-07-16 13:28:54 UTC) #4
Benedikt Meurer
On 2013/07/16 13:28:54, mvstanton wrote: > My previous comment is wrong in the specifics: we ...
7 years, 5 months ago (2013-07-16 18:06:51 UTC) #5
Benedikt Meurer
Added test case. PTAL.
7 years, 5 months ago (2013-07-17 08:25:35 UTC) #6
danno
lgtm
7 years, 5 months ago (2013-07-17 08:31:13 UTC) #7
Benedikt Meurer
7 years, 5 months ago (2013-07-17 08:32:34 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 manually as r15701 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698