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

Unified Diff: third_party/WebKit/Source/platform/Decimal.cpp

Issue 2846303002: Replace ASSERT with DCHECK in platform/ (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/Decimal.h ('k') | third_party/WebKit/Source/platform/DecimalTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/Decimal.cpp
diff --git a/third_party/WebKit/Source/platform/Decimal.cpp b/third_party/WebKit/Source/platform/Decimal.cpp
index f8e35bf62530ec42707deb2ede29e2b6c48f5b0d..eedf405e020c2f30d3d257f776770b51693e9e10 100644
--- a/third_party/WebKit/Source/platform/Decimal.cpp
+++ b/third_party/WebKit/Source/platform/Decimal.cpp
@@ -156,7 +156,7 @@ class UInt128 {
};
UInt128& UInt128::operator/=(const uint32_t divisor) {
- ASSERT(divisor);
+ DCHECK(divisor);
if (!high_) {
low_ /= divisor;
@@ -454,8 +454,8 @@ Decimal Decimal::operator/(const Decimal& rhs) const {
return Zero(result_sign);
}
- ASSERT(lhs.IsFinite());
- ASSERT(rhs.IsFinite());
+ DCHECK(lhs.IsFinite());
+ DCHECK(rhs.IsFinite());
if (rhs.IsZero())
return lhs.IsZero() ? Nan() : Infinity(result_sign);
@@ -544,8 +544,8 @@ Decimal Decimal::Abs() const {
Decimal::AlignedOperands Decimal::AlignOperands(const Decimal& lhs,
const Decimal& rhs) {
- ASSERT(lhs.IsFinite());
- ASSERT(rhs.IsFinite());
+ DCHECK(lhs.IsFinite());
+ DCHECK(rhs.IsFinite());
const int lhs_exponent = lhs.Exponent();
const int rhs_exponent = rhs.Exponent();
« no previous file with comments | « third_party/WebKit/Source/platform/Decimal.h ('k') | third_party/WebKit/Source/platform/DecimalTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698