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

Issue 2302733002: Add DISABLE_CFI_PERF attribute on the methods with CFI checks disabled. (Closed)

Created:
4 years, 3 months ago by krasin1
Modified:
4 years, 3 months ago
Reviewers:
eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DISABLE_CFI_PERF attribute on the methods with CFI checks disabled. While we have not observed CFI to slowdown real-world use cases, there are a few blink_perf microbenchmarks, which are somewhat affected by the change. This change removes CFI protection from the methods which contribute the most to the slowdown. Eventually, when proposed optimizations in Clang are implemented (https://crbug.com/638056, https://crbug.com/638064), these attributes would be possible to remove from all/most of the methods. This CL does not in fact change the list of disabled methods, it just converts them from CFI blacklist entries into attributes. This should increase visibility, and also serve as a guard against refactoring. BUG=641536 Committed: https://crrev.com/eb64c60f4789ab32bca921f63291ff8ccb35ab82 Cr-Commit-Position: refs/heads/master@{#415893}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -43 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.h View 4 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 18 chunks +19 lines, -0 lines 0 comments Download
M tools/cfi/blacklist.txt View 1 chunk +0 lines, -31 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
krasin1
4 years, 3 months ago (2016-09-01 05:10:06 UTC) #5
tkent
Delegate to eae@, who is the layout team TL. Question: Can we disable CFI for ...
4 years, 3 months ago (2016-09-01 05:22:05 UTC) #7
eae
On 2016/09/01 05:22:05, tkent wrote: > Delegate to eae@, who is the layout team TL. ...
4 years, 3 months ago (2016-09-01 05:26:20 UTC) #8
krasin1
On 2016/09/01 05:26:20, eae wrote: > On 2016/09/01 05:22:05, tkent wrote: > > Delegate to ...
4 years, 3 months ago (2016-09-01 05:50:04 UTC) #9
krasin1
Btw, these are similar CLs to other parts of Chrome: src/cc: https://codereview.chromium.org/2257323002/ v8: https://codereview.chromium.org/2258003002/
4 years, 3 months ago (2016-09-01 05:53:19 UTC) #10
eae
Thanks for the clarification. LGTM
4 years, 3 months ago (2016-09-01 06:05:02 UTC) #11
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/2302733002/1
4 years, 3 months ago (2016-09-01 06:07:57 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-01 06:11:22 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 06:13:23 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/eb64c60f4789ab32bca921f63291ff8ccb35ab82
Cr-Commit-Position: refs/heads/master@{#415893}

Powered by Google App Engine
This is Rietveld 408576698