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

Issue 2403003002: Speedup access to global_proxy.* attributes/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

Speedup access to global_proxy.* attributes/accessors. Using a global proxy (e.g. 'window.f', 'w.f' or 'this.f') is considerably slower than evaluating just 'f'. This CL aims to perform the necessary checks at compile time and inline the accesses. This is a follow-on CL to crrev.com/2369933005: - The initial upload is crrev.com/2369933005 + a rebase. - The remaining issues are the fixes requested by the reviewers on that CL. BUG=chromium:634276, chromium:654716, chromium:656959 Committed: https://crrev.com/8f43d748272536117008aa6a1b53ea52126261c1 Committed: https://crrev.com/041314524952a3c1bc71bd3beafbbb37319f1d22 Committed: https://crrev.com/36f3f90907bea457591c6c484fb554b737bbaeac Cr-Original-Original-Commit-Position: refs/heads/master@{#40153} Cr-Original-Commit-Position: refs/heads/master@{#40365} Cr-Commit-Position: refs/heads/master@{#40671}

Patch Set 1 : Copy of crrev.com/2369933005, patchset 80001. (Last patchset to be reviewed.) #

Patch Set 2 : Apply patchset 100001 of crrev.com/2369933005, "Nits". #

Patch Set 3 : One more nitpick. #

Patch Set 4 : Rebase Patch Set 3 #

Patch Set 5 : Fix issue that led to revert. #

Total comments: 2

Patch Set 6 : Return instruction from InlineGlobalPropertyStore #

Patch Set 7 : Fix cross-context access (and rebase) #

Patch Set 8 : Slightly simplify & prettify the code. No functionality changes. #

Patch Set 9 : Rebase; particularly merge w/ crrev.com/2444233004. #

Patch Set 10 : Check for nullptr return in InlineGlobalPropertyStore. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -126 lines) Patch
M src/crankshaft/hydrogen.h View 1 2 3 4 5 6 1 chunk +9 lines, -7 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 5 6 7 8 9 7 chunks +159 lines, -119 lines 0 comments Download

Messages

Total messages: 86 (54 generated)
vogelheim
ptal. This is essentially the same as the - already reviewed & lgtm-ed - crrev.com/72369933005. ...
4 years, 2 months ago (2016-10-10 13:50:41 UTC) #2
jochen (gone - plz use gerrit)
note that this merges the approved CL from Alfonso to speed up global property access ...
4 years, 2 months ago (2016-10-10 13:57:18 UTC) #3
vogelheim
ptal. I've now properly re-created the original patch set, plus one additional nitpick. Patch Set ...
4 years, 2 months ago (2016-10-10 15:09:12 UTC) #6
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-10 15:17:31 UTC) #7
Toon Verwaest
lgtm
4 years, 2 months ago (2016-10-11 06:52:21 UTC) #12
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/2403003002/80001
4 years, 2 months ago (2016-10-11 08:19:54 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 2 months ago (2016-10-11 08:22:10 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8f43d748272536117008aa6a1b53ea52126261c1 Cr-Commit-Position: refs/heads/master@{#40153}
4 years, 2 months ago (2016-10-11 08:22:28 UTC) #17
Michael Achenbach
A revert of this CL (patchset #3 id:80001) has been created in https://codereview.chromium.org/2408133002/ by machenbach@chromium.org. ...
4 years, 2 months ago (2016-10-11 12:48:31 UTC) #18
vogelheim
ptal. Preparing to re-land. It seems a bit odd to put the ...->ReturnValue into BuildNamedAccess ...
4 years, 2 months ago (2016-10-13 15:41:46 UTC) #27
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-14 08:11:48 UTC) #29
Toon Verwaest
https://codereview.chromium.org/2403003002/diff/140001/src/crankshaft/hydrogen.cc File src/crankshaft/hydrogen.cc (right): https://codereview.chromium.org/2403003002/diff/140001/src/crankshaft/hydrogen.cc#newcode7740 src/crankshaft/hydrogen.cc:7740: } You do this since the previous inline call ...
4 years, 2 months ago (2016-10-14 08:15:32 UTC) #30
vogelheim
https://codereview.chromium.org/2403003002/diff/140001/src/crankshaft/hydrogen.cc File src/crankshaft/hydrogen.cc (right): https://codereview.chromium.org/2403003002/diff/140001/src/crankshaft/hydrogen.cc#newcode7740 src/crankshaft/hydrogen.cc:7740: } On 2016/10/14 08:15:32, Toon Verwaest wrote: > You ...
4 years, 2 months ago (2016-10-14 08:50:50 UTC) #31
vogelheim
This would be fairly elegant if I could just use ast_context()->ReturnInstruction(..) in the caller - ...
4 years, 2 months ago (2016-10-14 11:42:47 UTC) #32
Toon Verwaest
The simulates are also added by the caller I thought? perhaps I'm overlooking something?
4 years, 2 months ago (2016-10-14 12:03:38 UTC) #33
vogelheim
On 2016/10/14 12:03:38, Toon Verwaest wrote: > The simulates are also added by the caller ...
4 years, 2 months ago (2016-10-17 09:45:12 UTC) #34
vogelheim
ptal. I think I got it now.
4 years, 2 months ago (2016-10-17 12:17:23 UTC) #39
Toon Verwaest
lgtm
4 years, 2 months ago (2016-10-17 13:29:30 UTC) #40
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/2403003002/160001
4 years, 2 months ago (2016-10-17 13:33:38 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 2 months ago (2016-10-17 13:36:18 UTC) #45
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/041314524952a3c1bc71bd3beafbbb37319f1d22 Cr-Commit-Position: refs/heads/master@{#40365}
4 years, 2 months ago (2016-10-17 13:37:16 UTC) #47
vogelheim
A revert of this CL (patchset #6 id:160001) has been created in https://codereview.chromium.org/2434233002/ by vogelheim@chromium.org. ...
4 years, 2 months ago (2016-10-20 16:09:38 UTC) #48
vogelheim
ptal. Due to the rebase the exact difference to the last version is a bit ...
4 years, 1 month ago (2016-10-25 17:33:04 UTC) #51
jochen (gone - plz use gerrit)
at first, I thought, maybe we can just always load the constant out of the ...
4 years, 1 month ago (2016-10-26 08:17:16 UTC) #56
vogelheim
On 2016/10/26 08:17:16, jochen wrote: > at first, I thought, maybe we can just always ...
4 years, 1 month ago (2016-10-26 09:37:34 UTC) #57
vogelheim
Patch Set 8 is a slightly cleaned version of the previous code. Patch Set 9 ...
4 years, 1 month ago (2016-10-26 11:24:02 UTC) #62
jochen (gone - plz use gerrit)
I think patchset 8 is correct(er)
4 years, 1 month ago (2016-10-26 13:10:14 UTC) #65
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/2403003002/200001
4 years, 1 month ago (2016-10-31 11:52:27 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/11589) v8_linux64_avx2_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-10-31 11:53:39 UTC) #71
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/2403003002/260001
4 years, 1 month ago (2016-10-31 14:26:00 UTC) #82
commit-bot: I haz the power
Committed patchset #10 (id:260001)
4 years, 1 month ago (2016-10-31 14:28:16 UTC) #84
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:18:05 UTC) #86
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/36f3f90907bea457591c6c484fb554b737bbaeac
Cr-Commit-Position: refs/heads/master@{#40671}

Powered by Google App Engine
This is Rietveld 408576698