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

Issue 2771483002: [Builtins] New Array.prototype.filter implementation observability bug. (Closed)

Created:
3 years, 9 months ago by mvstanton
Modified:
3 years, 9 months ago
Reviewers:
danno
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[Builtins] New Array.prototype.filter implementation observability bug. filter creates an output array with the Array species constructor for storing values from the input array that pass the user-supplied predicate function. Our new array builtins are implemented such that if we fall out of the fast path, we'll pick up where we left off in a continuation function. It's important to pass the index of where we left off appending to the output array, because otherwise we will read it at the start of the continuation function. That would be observable, and a spec violation. BUG= Review-Url: https://codereview.chromium.org/2771483002 Cr-Commit-Position: refs/heads/master@{#44023} Committed: https://chromium.googlesource.com/v8/v8/+/2c84924f1b70bedcbd7b356cb578b32df4180e28

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -51 lines) Patch
M src/builtins/builtins.h View 1 chunk +10 lines, -10 lines 0 comments Download
M src/builtins/builtins-array-gen.cc View 9 chunks +21 lines, -39 lines 0 comments Download
M src/compiler/code-assembler.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/interface-descriptors.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (8 generated)
mvstanton
Hi Danno, Here is the fix we discussed, thanks! --Michael
3 years, 9 months ago (2017-03-22 09:54:24 UTC) #2
danno
lgtm
3 years, 9 months ago (2017-03-22 13:12:33 UTC) #7
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/2771483002/1
3 years, 9 months ago (2017-03-22 13:14:32 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 13:18:36 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/2c84924f1b70bedcbd7b356cb578b32df41...

Powered by Google App Engine
This is Rietveld 408576698