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

Issue 2614073002: Cleanup RangeCheck class and dependencies (Closed)

Created:
3 years, 11 months ago by jschuh
Modified:
3 years, 11 months ago
Reviewers:
Tom Sepez
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup RangeCheck class and dependencies Moves the test code out of RangeCheck. Reorders range comparisons and removes bitfields to avoid a GCC constexpr bug. Removes some custom optimizations that are no longer necessary after the restructuring. TBR=tsepez Review-Url: https://codereview.chromium.org/2614073002 Cr-Commit-Position: refs/heads/master@{#441921} Committed: https://chromium.googlesource.com/chromium/src/+/082b2bad6a2b060d8daf01bcd13ccda7708a77c2

Patch Set 1 #

Patch Set 2 : remove bitfields and reorder comparisons #

Patch Set 3 : remove integer saturation specialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -74 lines) Patch
M base/numerics/safe_conversions.h View 1 2 1 chunk +1 line, -33 lines 0 comments Download
M base/numerics/safe_conversions_impl.h View 1 11 chunks +25 lines, -34 lines 0 comments Download
M base/numerics/safe_numerics_unittest.cc View 2 chunks +20 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
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/2614073002/1
3 years, 11 months ago (2017-01-06 00:05:55 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/189416) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 11 months ago (2017-01-06 00:28:33 UTC) #6
jschuh
Reordering the comparisons made the bitfields unnecessary as an optimization. So, I removed them to ...
3 years, 11 months ago (2017-01-06 04:41:43 UTC) #7
jschuh
And it turns out that my clever integer specialization isn't needed on clang anymore either ...
3 years, 11 months ago (2017-01-06 05:42:31 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/2614073002/40001
3 years, 11 months ago (2017-01-06 09:44:39 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/082b2bad6a2b060d8daf01bcd13ccda7708a77c2
3 years, 11 months ago (2017-01-06 11:41:25 UTC) #15
Tom Sepez
3 years, 11 months ago (2017-01-06 17:09:41 UTC) #16
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698