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

Issue 2659623002: [turbofan] Reduce CallConstructWithSpread where iteration is not observable. (Closed)

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

Description

[turbofan] Reduce CallConstructWithSpread where iteration is not observable. Where the arguments have already been inlined, we can replace these calls with a direct call to construct. We have to make sure that the iteration over the arguments is not observable. BUG=v8:5895 Review-Url: https://codereview.chromium.org/2659623002 Cr-Commit-Position: refs/heads/master@{#42765} Committed: https://chromium.googlesource.com/v8/v8/+/409d018005ab42ea664e7843e67676544b5b956b

Patch Set 1 #

Patch Set 2 : Add a dependency on the iterator protector cell" #

Patch Set 3 : Change test to make sure code is de-opt'd, not just never-opt'd #

Total comments: 4

Patch Set 4 : respond to comments from Benedikt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -3 lines) Patch
M src/compiler/js-call-reducer.h View 1 4 chunks +13 lines, -2 lines 0 comments Download
M src/compiler/js-call-reducer.cc View 1 2 3 3 chunks +78 lines, -0 lines 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A test/mjsunit/es6/super-with-spread.js View 1 chunk +88 lines, -0 lines 0 comments Download
A test/mjsunit/es6/super-with-spread-modify-array-iterator.js View 1 1 chunk +51 lines, -0 lines 0 comments Download
A test/mjsunit/es6/super-with-spread-modify-next.js View 1 2 1 chunk +56 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (15 generated)
petermarshall
PTAL =]. Do you think there are any other test cases we need, or dependencies/checks ...
3 years, 10 months ago (2017-01-30 08:42:54 UTC) #9
petermarshall
Also, when we do ChangeOp to CallConstruct, what can we do about the call frequency ...
3 years, 10 months ago (2017-01-30 08:48:39 UTC) #10
Benedikt Meurer
LGTM % nits https://codereview.chromium.org/2659623002/diff/40001/src/compiler/js-call-reducer.cc File src/compiler/js-call-reducer.cc (right): https://codereview.chromium.org/2659623002/diff/40001/src/compiler/js-call-reducer.cc#newcode742 src/compiler/js-call-reducer.cc:742: // Add a code dependency on ...
3 years, 10 months ago (2017-01-30 09:14:16 UTC) #12
petermarshall
Thanks https://codereview.chromium.org/2659623002/diff/40001/src/compiler/js-call-reducer.cc File src/compiler/js-call-reducer.cc (right): https://codereview.chromium.org/2659623002/diff/40001/src/compiler/js-call-reducer.cc#newcode742 src/compiler/js-call-reducer.cc:742: // Add a code dependency on the string ...
3 years, 10 months ago (2017-01-30 09:43:58 UTC) #15
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/2659623002/60001
3 years, 10 months ago (2017-01-30 09:59:19 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-01-30 10:29:13 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/409d018005ab42ea664e7843e67676544b5...

Powered by Google App Engine
This is Rietveld 408576698