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

Issue 2609913002: [builtins] throw if TypedArray buffer is detached during iteration (Closed)

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

Description

[builtins] throw if TypedArray buffer is detached during iteration Per spec change in https://github.com/tc39/ecma262/pull/724, this adds the exception thrown when a TypedArray's array buffer is detached at some point during iteration, after the iterator has already been created. BUG=v8:5388 R=littledan@chromium.org, bmeurer@chromium.org, petermarshall@chromium.org Review-Url: https://codereview.chromium.org/2609913002 Cr-Commit-Position: refs/heads/master@{#42048} Committed: https://chromium.googlesource.com/v8/v8/+/5c6e79e184f8e1f14802cc7664f58652651dcc2a

Patch Set 1 #

Total comments: 1

Patch Set 2 : maybe fix the test #

Total comments: 4

Patch Set 3 : remove optimization state test and fix heap constant #

Total comments: 1

Patch Set 4 : fix compiler error #

Patch Set 5 : fix the other compiler error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -32 lines) Patch
M src/builtins/builtins-array.cc View 1 2 3 4 4 chunks +20 lines, -31 lines 0 comments Download
M src/compiler/js-builtin-reducer.cc View 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/es6/array-iterator-detached.js View 1 2 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
caitp
please take a look when time permits, thanks!
3 years, 11 months ago (2017-01-03 16:06:25 UTC) #3
Dan Ehrenberg
Code seems fine AFAICT. I couldn't say no to an implementation of spec text I ...
3 years, 11 months ago (2017-01-03 16:20:47 UTC) #4
caitp
https://codereview.chromium.org/2609913002/diff/1/test/mjsunit/es6/array-iterator-detached.js File test/mjsunit/es6/array-iterator-detached.js (right): https://codereview.chromium.org/2609913002/diff/1/test/mjsunit/es6/array-iterator-detached.js#newcode41 test/mjsunit/es6/array-iterator-detached.js:41: "Turbo should be optimized using TurboFan backend."); these sorts ...
3 years, 11 months ago (2017-01-03 16:26:36 UTC) #7
Benedikt Meurer
https://codereview.chromium.org/2609913002/diff/20001/src/builtins/builtins-array.cc File src/builtins/builtins-array.cc (right): https://codereview.chromium.org/2609913002/diff/20001/src/builtins/builtins-array.cc#newcode2281 src/builtins/builtins-array.cc:2281: assembler.HeapConstant(assembler.factory()->NewStringFromAsciiChecked( The CodeStubAssembler generates a schedule immediately, which means ...
3 years, 11 months ago (2017-01-03 18:09:39 UTC) #12
caitp
https://codereview.chromium.org/2609913002/diff/20001/src/builtins/builtins-array.cc File src/builtins/builtins-array.cc (right): https://codereview.chromium.org/2609913002/diff/20001/src/builtins/builtins-array.cc#newcode2281 src/builtins/builtins-array.cc:2281: assembler.HeapConstant(assembler.factory()->NewStringFromAsciiChecked( On 2017/01/03 18:09:39, Benedikt Meurer wrote: > The ...
3 years, 11 months ago (2017-01-03 18:18:40 UTC) #15
caitp
https://codereview.chromium.org/2609913002/diff/40001/src/builtins/builtins-array.cc File src/builtins/builtins-array.cc (right): https://codereview.chromium.org/2609913002/diff/40001/src/builtins/builtins-array.cc#newcode2281 src/builtins/builtins-array.cc:2281: Node* operation = assembler.factory()->NewStringFromAsciiChecked( bleh, editing this in vim ...
3 years, 11 months ago (2017-01-03 18:20:11 UTC) #16
Benedikt Meurer
Thanks! LGTM.
3 years, 11 months ago (2017-01-03 19:56:44 UTC) #27
caitp
On 2017/01/03 19:56:44, Benedikt Meurer wrote: > Thanks! LGTM. Thanks --- Dan, I assume this ...
3 years, 11 months ago (2017-01-03 20:02:03 UTC) #28
Dan Ehrenberg
lgtm Works for me
3 years, 11 months ago (2017-01-03 20:07:43 UTC) #29
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/2609913002/80001
3 years, 11 months ago (2017-01-03 20:09:43 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 20:12:24 UTC) #34
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/5c6e79e184f8e1f14802cc7664f58652651...

Powered by Google App Engine
This is Rietveld 408576698