Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / wtf / dtoa / cached-powers.cc
index 91ac731..eaa1c21 100644 (file)
@@ -140,10 +140,8 @@ namespace double_conversion {
     const int PowersOfTenCache::kMinDecimalExponent = -348; // kCachedPowers[0].decimal_exponent
     const int PowersOfTenCache::kMaxDecimalExponent = 340; // kCachedPowers[kCachedPowersLength - 1].decimal_exponent
 
-#ifndef NDEBUG
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
     static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);
-#endif
 
     // Check that the static constants match the values in kCachedPowers.
     static void validateStaticConstants() {
@@ -159,7 +157,7 @@ namespace double_conversion {
                                                                 int max_exponent,
                                                                 DiyFp* power,
                                                                 int* decimal_exponent) {
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
         validateStaticConstants();
 #endif
         int kQ = DiyFp::kSignificandSize;
@@ -181,7 +179,7 @@ namespace double_conversion {
                                                             int* found_exponent) {
         ASSERT(kMinDecimalExponent <= requested_exponent);
         ASSERT(requested_exponent < kMaxDecimalExponent + kDecimalExponentDistance);
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
         validateStaticConstants();
 #endif
         int index =