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

Issue 2543553002: [accessors] handle `writable` changing during ArrayLengthSetter (Closed)

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

Description

[accessors] handle `writable` changing during ArrayLengthSetter The "writable" property descriptor may legally change during the call to AnythingToArrayLength(). This change needs to be honoured before calling JSArray::SetLength(). The change is only honoured when the "length" property was previously writable, so that changes during a call to DefineOwnPropertyIgnoreAttributes() is ignored. BUG=v8:5688 R=cbruni@chromium.org, verwaest@chromium.org, jkummerow@chromium.org Committed: https://crrev.com/d4918463a93b377be9cbf8325b3d2cfa226985d6 Cr-Commit-Position: refs/heads/master@{#41396}

Patch Set 1 #

Total comments: 2

Patch Set 2 : [accessors] handle `writable` changing during ArrayLengthSetter #

Patch Set 3 : use JSArray::HasReadOnlyLength() #

Patch Set 4 : s/name_string()/length_string()/ #

Total comments: 2

Patch Set 5 : refactor branch conditions for unlikely case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
M src/accessors.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M test/mjsunit/array-length.js View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (23 generated)
caitp
4 years ago (2016-11-30 06:21:13 UTC) #5
Camillo Bruni
https://codereview.chromium.org/2543553002/diff/1/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2543553002/diff/1/src/accessors.cc#newcode191 src/accessors.cc:191: LookupIterator it(object, Utils::OpenHandle(*name), LookupIterator::OWN); I think you want to ...
4 years ago (2016-11-30 12:08:27 UTC) #8
caitp
https://codereview.chromium.org/2543553002/diff/1/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2543553002/diff/1/src/accessors.cc#newcode191 src/accessors.cc:191: LookupIterator it(object, Utils::OpenHandle(*name), LookupIterator::OWN); On 2016/11/30 12:08:27, Camillo Bruni ...
4 years ago (2016-11-30 13:17:59 UTC) #9
Camillo Bruni
On 2016/11/30 at 13:17:59, caitp wrote: > https://codereview.chromium.org/2543553002/diff/1/src/accessors.cc > File src/accessors.cc (right): > > https://codereview.chromium.org/2543553002/diff/1/src/accessors.cc#newcode191 ...
4 years ago (2016-11-30 16:11:53 UTC) #14
Camillo Bruni
On 2016/11/30 at 16:11:53, Camillo Bruni wrote: > On 2016/11/30 at 13:17:59, caitp wrote: > ...
4 years ago (2016-11-30 16:35:11 UTC) #15
caitp
On 2016/11/30 16:35:11, Camillo Bruni wrote: > On 2016/11/30 at 16:11:53, Camillo Bruni wrote: > ...
4 years ago (2016-11-30 16:42:40 UTC) #18
Toon Verwaest
Lgtm with comment https://codereview.chromium.org/2543553002/diff/60001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2543553002/diff/60001/src/accessors.cc#newcode188 src/accessors.cc:188: // DefineOwnPropertyIgnoreAttributes(). What about if (!was_readonly ...
4 years ago (2016-11-30 18:05:52 UTC) #25
caitp
https://codereview.chromium.org/2543553002/diff/60001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/2543553002/diff/60001/src/accessors.cc#newcode188 src/accessors.cc:188: // DefineOwnPropertyIgnoreAttributes(). On 2016/11/30 18:05:52, Toon Verwaest wrote: > ...
4 years ago (2016-11-30 18:13:36 UTC) #26
Toon Verwaest
I agree but we don't care for the second condition unless the unlikely thing occurs ...
4 years ago (2016-11-30 18:16:52 UTC) #27
caitp
On 2016/11/30 18:16:52, Toon Verwaest wrote: > I agree but we don't care for the ...
4 years ago (2016-11-30 18:32:17 UTC) #28
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/2543553002/80001
4 years ago (2016-11-30 18:37:34 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-30 19:13:27 UTC) #34
commit-bot: I haz the power
4 years ago (2016-11-30 19:13:57 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d4918463a93b377be9cbf8325b3d2cfa226985d6
Cr-Commit-Position: refs/heads/master@{#41396}

Powered by Google App Engine
This is Rietveld 408576698