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

Issue 2619773002: [turbofan] Use feedback from StoreDataPropertyInLiteral. (Closed)

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

Description

[turbofan] Use feedback from StoreDataPropertyInLiteral. Lower StoreDataPropertyInLiteral() when storing computed property names in object literals. Add a new AccessMode, kStoreInLiteral. It is similar to AccessMode::kStore but does not look up properties on the prototype chain. 99% of all literal definitions with computed property names end up with generic access_info because of how we count properties. Once we fix https://bugs.chromium.org/p/v8/issues/detail?id=5625, they'll get lowered as well. BUG=v8:5624 Review-Url: https://codereview.chromium.org/2619773002 Cr-Commit-Position: refs/heads/master@{#42210} Committed: https://chromium.googlesource.com/v8/v8/+/088df4e13805b5a41bca3ed19030ff7c0c6f2df0

Patch Set 1 #

Patch Set 2 : Add AccessMode for storing in literals. #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix merge messups. #

Patch Set 5 : Delete comment. #

Total comments: 8

Patch Set 6 : Address review comments. #

Total comments: 6

Patch Set 7 : Fix DCHECKs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -11 lines) Patch
M src/compiler/access-info.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/access-info.cc View 1 3 chunks +9 lines, -1 line 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/js-native-context-specialization.cc View 1 2 3 4 5 6 7 chunks +80 lines, -6 lines 0 comments Download
M src/compiler/verifier.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-crbug-627828.js View 1 2 2 chunks +33 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (31 generated)
Franzi
Hi Benedikt, Here's the CL that's using the feedback collected in runtime_StoreDataPropertyInLiteral. I've added an ...
3 years, 11 months ago (2017-01-09 14:40:43 UTC) #11
Benedikt Meurer
https://codereview.chromium.org/2619773002/diff/80001/src/compiler/js-native-context-specialization.cc File src/compiler/js-native-context-specialization.cc (right): https://codereview.chromium.org/2619773002/diff/80001/src/compiler/js-native-context-specialization.cc#newcode970 src/compiler/js-native-context-specialization.cc:970: if (access_info.holder().ToHandle(&holder) && There should never be a holder ...
3 years, 11 months ago (2017-01-10 08:25:55 UTC) #16
Franzi
https://codereview.chromium.org/2619773002/diff/80001/src/compiler/js-native-context-specialization.cc File src/compiler/js-native-context-specialization.cc (right): https://codereview.chromium.org/2619773002/diff/80001/src/compiler/js-native-context-specialization.cc#newcode970 src/compiler/js-native-context-specialization.cc:970: if (access_info.holder().ToHandle(&holder) && On 2017/01/10 08:25:55, Benedikt Meurer wrote: ...
3 years, 11 months ago (2017-01-10 10:54:02 UTC) #24
Benedikt Meurer
LGTM % nits, thanks! https://codereview.chromium.org/2619773002/diff/120001/src/compiler/js-native-context-specialization.cc File src/compiler/js-native-context-specialization.cc (right): https://codereview.chromium.org/2619773002/diff/120001/src/compiler/js-native-context-specialization.cc#newcode971 src/compiler/js-native-context-specialization.cc:971: DCHECK_NE(access_mode, AccessMode::kStoreInLiteral); Nit: The other ...
3 years, 11 months ago (2017-01-11 05:06:12 UTC) #27
Franzi
https://codereview.chromium.org/2619773002/diff/120001/src/compiler/js-native-context-specialization.cc File src/compiler/js-native-context-specialization.cc (right): https://codereview.chromium.org/2619773002/diff/120001/src/compiler/js-native-context-specialization.cc#newcode971 src/compiler/js-native-context-specialization.cc:971: DCHECK_NE(access_mode, AccessMode::kStoreInLiteral); On 2017/01/11 05:06:12, Benedikt Meurer wrote: > ...
3 years, 11 months ago (2017-01-11 08:49:51 UTC) #28
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/2619773002/140001
3 years, 11 months ago (2017-01-11 09:28:20 UTC) #35
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 09:30:05 UTC) #38
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://chromium.googlesource.com/v8/v8/+/088df4e13805b5a41bca3ed19030ff7c0c6...

Powered by Google App Engine
This is Rietveld 408576698