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

Issue 2332053002: 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:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DISABLE_CFI_PERF attribute on the methods with CFI checks disabled. Types converted in this CL: LayoutBlockModelObject, LayoutFlexibleObject, LayoutGrid, LayoutObject, LayoutObjectChildList. 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 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/7a5a65d12fdb71cba72df34881548cfaaf6b618c Cr-Commit-Position: refs/heads/master@{#418196}

Patch Set 1 #

Patch Set 2 : LayoutFlexibleBox #

Patch Set 3 : LayoutGrid #

Patch Set 4 : LayoutObject, LayoutObjectChildList #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -54 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h View 2 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp View 1 12 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 6 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/cfi/blacklist.txt View 1 2 3 1 chunk +0 lines, -41 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
krasin1
Hi Emil, this is yet another boring CL that converts tools/cfi/blacklist.txt into the attributes. With ...
4 years, 3 months ago (2016-09-12 19:24:05 UTC) #6
eae
LGTM Feel free to TBR changes like this to me and I'll review them post-facto.
4 years, 3 months ago (2016-09-12 19:25:28 UTC) #7
eae
LGTM Feel free to TBR changes like this to me and I'll review them post-facto.
4 years, 3 months ago (2016-09-12 19:25:30 UTC) #8
krasin1
On 2016/09/12 19:25:30, eae wrote: > LGTM > > Feel free to TBR changes like ...
4 years, 3 months ago (2016-09-12 19:41:46 UTC) #9
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/2332053002/60001
4 years, 3 months ago (2016-09-12 19:42:20 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/291526)
4 years, 3 months ago (2016-09-12 23:10:29 UTC) #14
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/2332053002/60001
4 years, 3 months ago (2016-09-13 05:41:14 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-13 08:29:09 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 08:30:52 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7a5a65d12fdb71cba72df34881548cfaaf6b618c
Cr-Commit-Position: refs/heads/master@{#418196}

Powered by Google App Engine
This is Rietveld 408576698