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

Unified Diff: Source/wtf/dtoa/cached-powers.h

Issue 48833002: Move all static constants in dtoa/cached-powers.* to .rodata section (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix Windows build failure Created 7 years, 1 month 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
Index: Source/wtf/dtoa/cached-powers.h
diff --git a/Source/wtf/dtoa/cached-powers.h b/Source/wtf/dtoa/cached-powers.h
index fd01d73050d766ba8b284b9e5758bb5ba9e9bdf1..987cb3d5d0389511021628fb743419360eeb057b 100644
--- a/Source/wtf/dtoa/cached-powers.h
+++ b/Source/wtf/dtoa/cached-powers.h
@@ -39,10 +39,10 @@ namespace double_conversion {
// Not all powers of ten are cached. The decimal exponent of two neighboring
// cached numbers will differ by kDecimalExponentDistance.
- static int kDecimalExponentDistance;
+ static const int kDecimalExponentDistance;
- static int kMinDecimalExponent;
- static int kMaxDecimalExponent;
+ static const int kMinDecimalExponent;
+ static const int kMaxDecimalExponent;
// Returns a cached power-of-ten with a binary exponent in the range
// [min_exponent; max_exponent] (boundaries included).
@@ -60,11 +60,6 @@ namespace double_conversion {
DiyFp* power,
int* found_exponent);
};
-
- // Initializes the table of cached powers used by the dtoa algorithm.
- // This needs to be called when JSC is being initialized.
- void initialize();
-
} // namespace double_conversion
} // namespace WTF

Powered by Google App Engine
This is Rietveld 408576698