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

Issue 2304563003: 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: LayoutBlock, LayoutBlockFlow, InlineFlowBox, InlineBox. 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/5e2204ad64fdcbc8efc4d1cad26a9da5672a39a8 Cr-Commit-Position: refs/heads/master@{#416727}

Patch Set 1 #

Patch Set 2 : LayoutBlockFlow #

Patch Set 3 : InlineFlowBox #

Patch Set 4 : InlineBox #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -25 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 5 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 5 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineBox.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineBox.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineFlowBox.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/cfi/blacklist.txt View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
krasin1
Hi Emil, this is the second part of CFI blacklist -> DISABLE_CFI_PERF conversion. Please, take ...
4 years, 3 months ago (2016-09-01 18:57:53 UTC) #5
eae
RS LGTM
4 years, 3 months ago (2016-09-05 20:53:43 UTC) #10
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/2304563003/60001
4 years, 3 months ago (2016-09-06 17:10:24 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-06 21:00:42 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 21:03:25 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5e2204ad64fdcbc8efc4d1cad26a9da5672a39a8
Cr-Commit-Position: refs/heads/master@{#416727}

Powered by Google App Engine
This is Rietveld 408576698