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

Issue 2405213002: V8 support for cached accessors. (Closed)

Created:
4 years, 2 months ago by vogelheim
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

V8 support for cached accessors. Some accessors requires little to no computation at all, its result can be cached in a private property, avoiding the call overhead. Calls to the getter are translated into a cheap property load. Follow-on to crrev.com/2347523003, from peterssen@google.com BUG=chromium:634276, v8:5548 Committed: https://crrev.com/cadcd787cf185f9fb974a1f0c12fdd13c45171e9 Cr-Commit-Position: refs/heads/master@{#40765}

Patch Set 1 : Patch Set 4 from crrev.com/2405213002, rebased. #

Patch Set 2 : Centralized lookup in LookupIterator::TryLookupCacheProperty. Also rebase. #

Total comments: 19

Patch Set 3 : Rebase. (No other changes.) #

Patch Set 4 : Feedback. #

Total comments: 4

Patch Set 5 : Toon's feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -38 lines) Patch
M include/v8.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 chunks +21 lines, -2 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M src/ic/ic.h View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download
M src/ic/ic.cc View 1 2 3 6 chunks +31 lines, -25 lines 0 comments Download
M src/lookup.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/lookup.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-api-accessors.cc View 2 chunks +138 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
vogelheim
Please take a look. This is based on crrev.com/2347523003, rebased. Also, based on Jochen's previous ...
4 years, 2 months ago (2016-10-18 09:58:39 UTC) #6
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-19 14:31:08 UTC) #7
jochen (gone - plz use gerrit)
can you please file a bug that this needs to be ported to TF?
4 years, 2 months ago (2016-10-19 14:31:25 UTC) #8
vogelheim
On 2016/10/19 14:31:25, jochen wrote: > can you please file a bug that this needs ...
4 years, 2 months ago (2016-10-19 16:09:59 UTC) #9
vogelheim
On 2016/10/19 16:09:59, vogelheim wrote: > On 2016/10/19 14:31:25, jochen wrote: > > can you ...
4 years, 2 months ago (2016-10-20 14:07:14 UTC) #12
Toon Verwaest
https://codereview.chromium.org/2405213002/diff/20001/src/ic/ic.cc File src/ic/ic.cc (left): https://codereview.chromium.org/2405213002/diff/20001/src/ic/ic.cc#oldcode1335 src/ic/ic.cc:1335: DCHECK(!receiver_is_holder); Why is this removed? I'm pretty sure we ...
4 years, 2 months ago (2016-10-21 08:22:14 UTC) #13
vogelheim
ptal Didn't do two of the suggestions. Let me know if I'm overlooking something. https://codereview.chromium.org/2405213002/diff/20001/src/ic/ic.cc ...
4 years, 1 month ago (2016-11-03 16:12:24 UTC) #22
vogelheim
@jkummerow: Care to have a look at the changes ic.*? As briefly discussed in person, ...
4 years, 1 month ago (2016-11-03 16:13:53 UTC) #24
Toon Verwaest
lgtm https://codereview.chromium.org/2405213002/diff/20001/src/lookup.cc File src/lookup.cc (right): https://codereview.chromium.org/2405213002/diff/20001/src/lookup.cc#newcode845 src/lookup.cc:845: isolate()); On 2016/11/03 16:12:23, vogelheim wrote: > On ...
4 years, 1 month ago (2016-11-04 10:19:52 UTC) #25
vogelheim
https://codereview.chromium.org/2405213002/diff/60001/src/crankshaft/hydrogen.cc File src/crankshaft/hydrogen.cc (right): https://codereview.chromium.org/2405213002/diff/60001/src/crankshaft/hydrogen.cc#newcode6162 src/crankshaft/hydrogen.cc:6162: if (cache_info.CanAccessMonomorphic()) On 2016/11/04 10:19:52, Toon Verwaest wrote: > ...
4 years, 1 month ago (2016-11-04 12:34:42 UTC) #28
Jakob Kummerow
lgtm
4 years, 1 month ago (2016-11-04 12:39:18 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/2405213002/80001
4 years, 1 month ago (2016-11-04 13:00:45 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-04 13:02:45 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:22:48 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cadcd787cf185f9fb974a1f0c12fdd13c45171e9
Cr-Commit-Position: refs/heads/master@{#40765}

Powered by Google App Engine
This is Rietveld 408576698