Bug 1020420 followup - Add explicit template instantiations to fix b2g opt compile errors on a CLOSED TREE. r=bustage
authorJan de Mooij <jdemooij@mozilla.com>
Fri, 06 Jun 2014 12:00:48 +0200
changeset 206300 e9d959645b8f63abbd97761db50b99da8087aee1
parent 206299 ca725c15bdeb62c97ca0876a40aaacb8cac542e3
child 206301 c0df4d901b8e59628e74acf707ba1d84b8c12458
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1020420
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1020420 followup - Add explicit template instantiations to fix b2g opt compile errors on a CLOSED TREE. r=bustage
js/src/jsnum.cpp
--- a/js/src/jsnum.cpp
+++ b/js/src/jsnum.cpp
@@ -233,16 +233,24 @@ js::GetPrefixInteger(ThreadSafeContext *
         return ComputeAccurateDecimalInteger(cx, start, s, dp);
 
     if ((base & (base - 1)) == 0)
         *dp = ComputeAccurateBinaryBaseInteger(start, s, base);
 
     return true;
 }
 
+template bool
+js::GetPrefixInteger(ThreadSafeContext *cx, const jschar *start, const jschar *end, int base,
+                     const jschar **endp, double *dp);
+
+template bool
+js::GetPrefixInteger(ThreadSafeContext *cx, const Latin1Char *start, const Latin1Char *end,
+                     int base, const Latin1Char **endp, double *dp);
+
 bool
 js::GetDecimalInteger(ExclusiveContext *cx, const jschar *start, const jschar *end, double *dp)
 {
     JS_ASSERT(start <= end);
 
     const jschar *s = start;
     double d = 0.0;
     for (; s < end; s++) {
@@ -1789,8 +1797,16 @@ js_strtod(ThreadSafeContext *cx, const C
 
     if (ep == chars.begin())
         *dEnd = begin;
     else
         *dEnd = s + (ep - chars.begin());
 
     return true;
 }
+
+template bool
+js_strtod(ThreadSafeContext *cx, const jschar *begin, const jschar *end, const jschar **dEnd,
+          double *d);
+
+template bool
+js_strtod(ThreadSafeContext *cx, const Latin1Char *begin, const Latin1Char *end,
+          const Latin1Char **dEnd, double *d);