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

Issue 1821723004: Ensure CreateDataProperty works correctly on TypedArrays (Closed)

Created:
4 years, 9 months ago by Dan Ehrenberg
Modified:
4 years, 8 months ago
Reviewers:
adamk, Toon Verwaest
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Ensure CreateDataProperty works correctly on TypedArrays Previously, CreateDataProperty would fail a DCHECK when used to create an integer indexed property on a TypedArray. This patch makes it throw a TypeError instead. The issue came up when Array.prototype.concat was repaired to use CreateDataProperty rather than SetElement; concat can be tricked into making a new TypedArray if it is given an Array whose prototype is a TypedArray. This patch prevents the issue. R=adamk LOG=Y BUG=chromium:596394 Committed: https://crrev.com/7a38462e8b0fb25543ce8975045bc1e13d11cd34 Cr-Commit-Position: refs/heads/master@{#35271}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Use appropriate internal API #

Total comments: 2

Patch Set 3 : reverse polarity of test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M src/objects.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
A test/mjsunit/regress/regress-crbug-596394.js View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
Dan Ehrenberg
4 years, 9 months ago (2016-03-21 21:30:56 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1821723004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1821723004/1
4 years, 9 months ago (2016-03-21 21:30:58 UTC) #3
adamk
https://codereview.chromium.org/1821723004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1821723004/diff/1/src/objects.cc#newcode6691 src/objects.cc:6691: if (it->state() == LookupIterator::INTEGER_INDEXED_EXOTIC || Why is this needed? ...
4 years, 9 months ago (2016-03-21 21:44:01 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 22:01:06 UTC) #6
Dan Ehrenberg
Toon, how would you suggest structuring this code? https://codereview.chromium.org/1821723004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1821723004/diff/1/src/objects.cc#newcode6691 src/objects.cc:6691: if ...
4 years, 9 months ago (2016-03-21 22:08:43 UTC) #8
adamk
In particular, it seems to me like it's something of a footgun in the LookupIterator ...
4 years, 9 months ago (2016-03-21 22:16:30 UTC) #9
Dan Ehrenberg
On 2016/03/21 at 22:16:30, adamk wrote: > In particular, it seems to me like it's ...
4 years, 8 months ago (2016-03-30 15:26:37 UTC) #10
Toon Verwaest
https://codereview.chromium.org/1821723004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1821723004/diff/1/src/objects.cc#newcode6691 src/objects.cc:6691: if (it->state() == LookupIterator::INTEGER_INDEXED_EXOTIC || On 2016/03/21 22:08:43, Dan ...
4 years, 8 months ago (2016-03-31 15:08:03 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1821723004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1821723004/20001
4 years, 8 months ago (2016-04-04 23:47:14 UTC) #13
Dan Ehrenberg
https://codereview.chromium.org/1821723004/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1821723004/diff/1/src/objects.cc#newcode6691 src/objects.cc:6691: if (it->state() == LookupIterator::INTEGER_INDEXED_EXOTIC || On 2016/03/31 at 15:08:03, ...
4 years, 8 months ago (2016-04-04 23:48:07 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/12471) v8_mac_rel on ...
4 years, 8 months ago (2016-04-05 00:01:05 UTC) #16
adamk
https://codereview.chromium.org/1821723004/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1821723004/diff/20001/src/objects.cc#newcode6690 src/objects.cc:6690: if (!(attributes.FromJust() & DONT_DELETE)) { Sadly, because V8 predates ...
4 years, 8 months ago (2016-04-05 00:04:32 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1821723004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1821723004/40001
4 years, 8 months ago (2016-04-05 00:24:48 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_chromium_gn_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_chromium_gn_rel/builds/15903)
4 years, 8 months ago (2016-04-05 00:34:45 UTC) #21
Dan Ehrenberg
https://codereview.chromium.org/1821723004/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1821723004/diff/20001/src/objects.cc#newcode6690 src/objects.cc:6690: if (!(attributes.FromJust() & DONT_DELETE)) { On 2016/04/05 at 00:04:32, ...
4 years, 8 months ago (2016-04-05 00:48:39 UTC) #22
Toon Verwaest
lgtm
4 years, 8 months ago (2016-04-05 12:28:33 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1821723004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1821723004/40001
4 years, 8 months ago (2016-04-05 16:48:55 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-05 16:55:24 UTC) #26
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 16:56:23 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7a38462e8b0fb25543ce8975045bc1e13d11cd34
Cr-Commit-Position: refs/heads/master@{#35271}

Powered by Google App Engine
This is Rietveld 408576698