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

Issue 346913004: Some inline ARM assembly for saturated arithmetic, a small speed-up for (Closed)

Created:
6 years, 6 months ago by picksi1
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, Mikhail, abarth-chromium, Erik Corry, Chris Evans
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Some inline ARM assembly for saturated arithmetic and a small speed-up for the C version of saturated add and subtract. Created a unit test for setting a saturated value. Benchmarking using rasterize_and_record_micro.key_mobile_sites on a Nexus7 recorded a consistent drop in RasterizeAndRecordMicro:record_time from 5.18ms to 4.93ms (~5% improvement). BUG=325746 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177208 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177300

Patch Set 1 #

Patch Set 2 : Line length fixes #

Total comments: 14

Patch Set 3 : Rename of assmebly file, some layout changes #

Total comments: 2

Patch Set 4 : Unit test fix #

Patch Set 5 : Fixes for Clang build #

Patch Set 6 : Implicit casting removed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -19 lines) Patch
M Source/platform/LayoutUnit.h View 1 chunk +4 lines, -11 lines 0 comments Download
M Source/wtf/SaturatedArithmetic.h View 1 2 3 2 chunks +62 lines, -8 lines 0 comments Download
M Source/wtf/SaturatedArithmeticTest.cpp View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A Source/wtf/asm/SaturatedArithmeticARM.h View 1 2 3 4 5 1 chunk +105 lines, -0 lines 0 comments Download
M Source/wtf/wtf.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
picksi
This is a new CL that replaces the previous CL for saturated arithmetic work. This ...
6 years, 6 months ago (2014-06-19 23:06:31 UTC) #1
Stephen Chennney
I'm happy with the way you're going about this. Please expand the CL description to ...
6 years, 6 months ago (2014-06-20 14:46:56 UTC) #2
eseidel
https://codereview.chromium.org/346913004/diff/20001/Source/wtf/SaturatedArithmetic.h File Source/wtf/SaturatedArithmetic.h (right): https://codereview.chromium.org/346913004/diff/20001/Source/wtf/SaturatedArithmetic.h#newcode42 Source/wtf/SaturatedArithmetic.h:42: #include "wtf/asm/SaturatedArithmeticAsm.h" I probably would have called it wtf/SaturatedArithmaticARM.h, ...
6 years, 6 months ago (2014-06-20 16:30:20 UTC) #3
eseidel
Honestly, you could evne just put the ARM ASM in the original header, I doubt ...
6 years, 6 months ago (2014-06-20 16:31:39 UTC) #4
picksi
I've left the ARM code in a separate file to keep the header file less ...
6 years, 6 months ago (2014-06-23 15:30:44 UTC) #5
picksi
Hi, are you happy with the changes I've made here? Thanks! Simon
6 years, 5 months ago (2014-06-27 08:41:42 UTC) #6
Stephen Chennney
LGTM but you'll need Eric or someone with wtf ownership to actually commit.
6 years, 5 months ago (2014-06-27 14:21:54 UTC) #7
Stephen Chennney
I'm not seeing the CL description update. I believe you'll need to "Edit Issue" this ...
6 years, 5 months ago (2014-06-27 14:23:49 UTC) #8
picksi
On 2014/06/27 14:23:49, Stephen Chenney wrote: > I'm not seeing the CL description update. I ...
6 years, 5 months ago (2014-06-27 14:33:39 UTC) #9
eseidel
lgtm. I would like eae who I believe originally wrote the saturated arith logic in ...
6 years, 5 months ago (2014-06-27 16:40:15 UTC) #10
eae
Very nice, thanks for doing this! Been on my todo list for ages. LGTM++ https://codereview.chromium.org/346913004/diff/40001/Source/wtf/SaturatedArithmetic.h ...
6 years, 5 months ago (2014-06-27 17:07:01 UTC) #11
picksi
The CQ bit was checked by picksi@google.com
6 years, 5 months ago (2014-06-30 08:49:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/picksi@chromium.org/346913004/40001
6 years, 5 months ago (2014-06-30 08:50:17 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-06-30 09:30:15 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-06-30 09:39:09 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/14070)
6 years, 5 months ago (2014-06-30 09:39:10 UTC) #16
picksi
I have fixed a LayoutUnit unit test that was failing for non-ARM build. I'll go ...
6 years, 5 months ago (2014-06-30 11:34:02 UTC) #17
picksi
The CQ bit was checked by picksi@google.com
6 years, 5 months ago (2014-06-30 11:34:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/picksi@chromium.org/346913004/60001
6 years, 5 months ago (2014-06-30 11:34:45 UTC) #19
commit-bot: I haz the power
Change committed as 177208
6 years, 5 months ago (2014-06-30 12:41:13 UTC) #20
Timothy Loh
A revert of this CL has been created in https://codereview.chromium.org/337323004/ by timloh@chromium.org. The reason for ...
6 years, 5 months ago (2014-06-30 13:57:12 UTC) #21
picksi
Clang build fixed (signed/unsigned comparison in unit test)
6 years, 5 months ago (2014-07-01 10:36:54 UTC) #22
picksi
The CQ bit was checked by picksi@google.com
6 years, 5 months ago (2014-07-01 10:49:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/picksi@chromium.org/346913004/100001
6 years, 5 months ago (2014-07-01 10:50:26 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-01 11:54:41 UTC) #25
commit-bot: I haz the power
6 years, 5 months ago (2014-07-01 12:27:39 UTC) #26
Message was sent while issue was closed.
Change committed as 177300

Powered by Google App Engine
This is Rietveld 408576698