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

Issue 2020203006: math.js: Use %_TypedArrayGetLength to get length (Closed)

Created:
4 years, 6 months ago by gsathya
Modified:
4 years, 6 months ago
Reviewers:
Yang
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

math.js: Use %_TypedArrayGetLength to get length https://codereview.chromium.org/2001393004 makes TypedArray length property writable, which means we shouldn't depend on it. Instead, use %_TypedArrayGetLength% to get length. Attached regression test. BUG=chromium:615776 Committed: https://crrev.com/a7d091ffe385fc62e372f34317d97e6ea31a0a4a Cr-Commit-Position: refs/heads/master@{#36655}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : trim test case #

Patch Set 4 : remove second test case #

Patch Set 5 : remove second test case for real #

Patch Set 6 : fix mathrandom and test it #

Patch Set 7 : fix error msg #

Patch Set 8 : remove extra var #

Patch Set 9 : install a length getter that throws #

Patch Set 10 : don't use assertDoesNotThrow #

Patch Set 11 : add typedarray check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M src/js/math.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -2 lines 0 comments Download
A test/mjsunit/regress/regress-615776.js View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020203006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2020203006/20001
4 years, 6 months ago (2016-06-01 01:44:58 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-01 02:08:40 UTC) #4
gsathya
4 years, 6 months ago (2016-06-01 03:06:34 UTC) #9
Yang
On 2016/06/01 03:06:34, gsathya wrote: can you reduce the test case a bit? The current ...
4 years, 6 months ago (2016-06-01 03:29:49 UTC) #11
Yang
On 2016/06/01 03:06:34, gsathya wrote: can you reduce the test case a bit? The current ...
4 years, 6 months ago (2016-06-01 03:29:51 UTC) #12
gsathya
On 2016/06/01 03:29:51, Yang wrote: > On 2016/06/01 03:06:34, gsathya wrote: > > can you ...
4 years, 6 months ago (2016-06-01 03:41:58 UTC) #13
Yang
On 2016/06/01 03:41:58, gsathya wrote: > On 2016/06/01 03:29:51, Yang wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 03:45:02 UTC) #14
Yang
On 2016/06/01 03:41:58, gsathya wrote: > On 2016/06/01 03:29:51, Yang wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 03:45:03 UTC) #15
gsathya
On 2016/06/01 03:45:03, Yang wrote: > On 2016/06/01 03:41:58, gsathya wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 04:27:08 UTC) #16
Yang
On 2016/06/01 04:27:08, gsathya wrote: > On 2016/06/01 03:45:03, Yang wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 04:33:30 UTC) #17
gsathya
On 2016/06/01 04:33:30, Yang wrote: > On 2016/06/01 04:27:08, gsathya wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 04:43:34 UTC) #18
Yang
On 2016/06/01 04:43:34, gsathya wrote: > On 2016/06/01 04:33:30, Yang wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 04:46:06 UTC) #19
gsathya
On 2016/06/01 04:46:06, Yang wrote: > On 2016/06/01 04:43:34, gsathya wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 04:52:30 UTC) #20
gsathya
On 2016/06/01 04:52:30, gsathya wrote: > On 2016/06/01 04:46:06, Yang wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 04:55:02 UTC) #21
Yang
On 2016/06/01 04:55:02, gsathya wrote: > On 2016/06/01 04:52:30, gsathya wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 05:01:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020203006/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2020203006/180001
4 years, 6 months ago (2016-06-01 15:56:41 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel_ng/builds/2468) v8_linux64_avx2_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
4 years, 6 months ago (2016-06-01 16:11:09 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020203006/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2020203006/200001
4 years, 6 months ago (2016-06-01 17:32:05 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-01 17:59:22 UTC) #30
gsathya
On 2016/06/01 05:01:48, Yang wrote: > On 2016/06/01 04:55:02, gsathya wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 18:00:31 UTC) #31
Yang
On 2016/06/01 18:00:31, gsathya wrote: > On 2016/06/01 05:01:48, Yang wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 18:04:24 UTC) #32
gsathya
On 2016/06/01 18:04:24, Yang wrote: > On 2016/06/01 18:00:31, gsathya wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 18:27:15 UTC) #33
Yang
On 2016/06/01 18:27:15, gsathya wrote: > On 2016/06/01 18:04:24, Yang wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 18:31:26 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020203006/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2020203006/200001
4 years, 6 months ago (2016-06-01 18:39:42 UTC) #36
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 6 months ago (2016-06-01 18:42:09 UTC) #38
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 18:44:44 UTC) #40
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/a7d091ffe385fc62e372f34317d97e6ea31a0a4a
Cr-Commit-Position: refs/heads/master@{#36655}

Powered by Google App Engine
This is Rietveld 408576698