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

Issue 2516153002: Move the remaining CheckedNumeric logic out of the macro (Closed)

Created:
4 years, 1 month ago by jschuh
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move the remaining CheckedNumeric logic out of the macro Moves the remaining run-time logic into template classes and functions. It also eliminates a number of public interfaces used for tests, etc, and unifies the handling of floating points and integers. NOTRY=true BUG=667097 Committed: https://crrev.com/d1c1f2e2b77a2e0f082756f1d908b3ed71712585 Cr-Commit-Position: refs/heads/master@{#433659}

Patch Set 1 #

Patch Set 2 : compile fix #

Patch Set 3 : nits #

Patch Set 4 : cleanup #

Patch Set 5 : compile fix #

Patch Set 6 : gcc fix #

Patch Set 7 : gcc speculative crash fix #

Patch Set 8 : big refactoring #

Patch Set 9 : cleanup and comments #

Patch Set 10 : more cleanup #

Patch Set 11 : speculative gcc/clang compile fix #

Patch Set 12 : nit #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -295 lines) Patch
M base/numerics/safe_math.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +99 lines, -81 lines 0 comments Download
M base/numerics/safe_math_impl.h View 1 2 3 4 5 6 7 8 9 8 chunks +224 lines, -207 lines 4 comments Download
M base/numerics/safe_numerics_unittest.cc View 1 chunk +18 lines, -7 lines 0 comments Download

Messages

Total messages: 35 (26 generated)
jschuh
tsepez@ - Sorry for the largish CL. Most of the content is mechanical restructuring to ...
4 years, 1 month ago (2016-11-21 15:21:07 UTC) #18
Tom Sepez
lgtm https://codereview.chromium.org/2516153002/diff/210001/base/numerics/safe_math_impl.h File base/numerics/safe_math_impl.h (right): https://codereview.chromium.org/2516153002/diff/210001/base/numerics/safe_math_impl.h#newcode565 base/numerics/safe_math_impl.h:565: if (!IsValueNegative(x) && real_shift < kBitWidth) { nit: ...
4 years, 1 month ago (2016-11-21 17:19:52 UTC) #19
jschuh
https://codereview.chromium.org/2516153002/diff/210001/base/numerics/safe_math_impl.h File base/numerics/safe_math_impl.h (right): https://codereview.chromium.org/2516153002/diff/210001/base/numerics/safe_math_impl.h#newcode565 base/numerics/safe_math_impl.h:565: if (!IsValueNegative(x) && real_shift < kBitWidth) { On 2016/11/21 ...
4 years, 1 month ago (2016-11-21 17:43:25 UTC) #20
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/2516153002/210001
4 years, 1 month ago (2016-11-21 17:44:09 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/266337) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-11-21 19:47:55 UTC) #24
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/2516153002/210001
4 years, 1 month ago (2016-11-21 19:49:54 UTC) #26
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/2516153002/210001
4 years, 1 month ago (2016-11-21 21:41:03 UTC) #30
commit-bot: I haz the power
Committed patchset #12 (id:210001)
4 years, 1 month ago (2016-11-21 21:46:18 UTC) #33
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 21:48:56 UTC) #35
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/d1c1f2e2b77a2e0f082756f1d908b3ed71712585
Cr-Commit-Position: refs/heads/master@{#433659}

Powered by Google App Engine
This is Rietveld 408576698