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

Issue 2838123004: [turbofan] Fix lowering of Array constructor with one argument. (Closed)

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

Description

[turbofan] Fix lowering of Array constructor with one argument. Only create a singleton array for Array(len) if Type(len) cannot be Number, otherwise we might need to throw an exception instead. BUG=chromium:715404 R=jarin@chromium.org Review-Url: https://codereview.chromium.org/2838123004 Cr-Commit-Position: refs/heads/master@{#44886} Committed: https://chromium.googlesource.com/v8/v8/+/d06d4ce2c4b36d722d4cb788c3962b4e92ab7a47

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M src/compiler/js-create-lowering.cc View 1 chunk +1 line, -1 line 1 comment Download
A test/mjsunit/regress/regress-crbug-715404.js View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
Benedikt Meurer
3 years, 8 months ago (2017-04-26 11:36:54 UTC) #1
Jarin
lgtm
3 years, 8 months ago (2017-04-26 11:40:41 UTC) #4
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/2838123004/1
3 years, 8 months ago (2017-04-26 11:41:32 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/v8/v8/+/d06d4ce2c4b36d722d4cb788c3962b4e92ab7a47
3 years, 8 months ago (2017-04-26 12:02:21 UTC) #10
Michael Achenbach
https://codereview.chromium.org/2838123004/diff/1/src/compiler/js-create-lowering.cc File src/compiler/js-create-lowering.cc (right): https://codereview.chromium.org/2838123004/diff/1/src/compiler/js-create-lowering.cc#newcode821 src/compiler/js-create-lowering.cc:821: return ReduceNewArray(node, {length}, site); Are you sure this code ...
3 years, 8 months ago (2017-04-26 12:36:08 UTC) #12
Michael Achenbach
No coverage on gcov either: https://storage.googleapis.com/chromium-v8/linux64_gcov_rel/44b291d0e21e7539567cd095366549e9af73ef7c/src/compiler/js-create-lowering.cc.gcov.html
3 years, 8 months ago (2017-04-26 13:43:32 UTC) #13
Benedikt Meurer
3 years, 8 months ago (2017-04-26 16:24:15 UTC) #14
Message was sent while issue was closed.
On 2017/04/26 13:43:32, Michael Achenbach wrote:
> No coverage on gcov either:
>
https://storage.googleapis.com/chromium-v8/linux64_gcov_rel/44b291d0e21e75395...

Cool, thanks. I'll add a test.

Powered by Google App Engine
This is Rietveld 408576698