Title: [156042] trunk/Source/WTF
- Revision
- 156042
- Author
- akl...@apple.com
- Date
- 2013-09-18 08:54:54 -0700 (Wed, 18 Sep 2013)
Log Message
Put constant CachedPower table in read-only memory.
<https://webkit.org/b/121546>
Reviewed by Anders Carlsson.
* wtf/dtoa/cached-powers.cc:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (156041 => 156042)
--- trunk/Source/WTF/ChangeLog 2013-09-18 15:48:34 UTC (rev 156041)
+++ trunk/Source/WTF/ChangeLog 2013-09-18 15:54:54 UTC (rev 156042)
@@ -1,3 +1,12 @@
+2013-09-18 Andreas Kling <akl...@apple.com>
+
+ Put constant CachedPower table in read-only memory.
+ <https://webkit.org/b/121546>
+
+ Reviewed by Anders Carlsson.
+
+ * wtf/dtoa/cached-powers.cc:
+
2013-09-18 Commit Queue <commit-qu...@webkit.org>
Unreviewed, rolling out r156019 and r156020.
Modified: trunk/Source/WTF/wtf/dtoa/cached-powers.cc (156041 => 156042)
--- trunk/Source/WTF/wtf/dtoa/cached-powers.cc 2013-09-18 15:48:34 UTC (rev 156041)
+++ trunk/Source/WTF/wtf/dtoa/cached-powers.cc 2013-09-18 15:54:54 UTC (rev 156042)
@@ -47,7 +47,7 @@
static int kCachedPowersLength = 1;
static int kCachedPowersOffset = 1;
static const double kD_1_LOG2_10 = 0.30102999566398114; // 1 / lg(10)
- static CachedPower* kCachedPowers = 0;
+ static const CachedPower* kCachedPowers = 0;
int PowersOfTenCache::kDecimalExponentDistance = 1;
int PowersOfTenCache::kMinDecimalExponent = 1;
@@ -56,7 +56,7 @@
void initialize() {
if (kCachedPowers)
return;
- static CachedPower cachedPowers[] = {
+ static const CachedPower cachedPowers[] = {
{UINT64_2PART_C(0xfa8fd5a0, 081c0288), -1220, -348},
{UINT64_2PART_C(0xbaaee17f, a23ebf76), -1193, -340},
{UINT64_2PART_C(0x8b16fb20, 3055ac76), -1166, -332},
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes