Bug 676739 - Part 3: Rename js_NumberToString to js::NumberToString. r=luke

This commit is contained in:
Yaron Tausky 2013-09-06 13:05:01 +02:00
parent 73c9a2ace3
commit 5c375a64e4
5 changed files with 9 additions and 9 deletions

View File

@ -623,7 +623,7 @@ CodeGenerator::visitIntToString(LIntToString *lir)
typedef JSString *(*DoubleToStringFn)(ThreadSafeContext *, double);
typedef ParallelResult (*DoubleToStringParFn)(ForkJoinSlice *, double, MutableHandleString);
static const VMFunctionsModal DoubleToStringInfo = VMFunctionsModal(
FunctionInfo<DoubleToStringFn>(js_NumberToString<CanGC>),
FunctionInfo<DoubleToStringFn>(NumberToString<CanGC>),
FunctionInfo<DoubleToStringParFn>(DoubleToStringPar));
bool

View File

@ -211,7 +211,7 @@ jit::IntToStringPar(ForkJoinSlice *slice, int i, MutableHandleString out)
ParallelResult
jit::DoubleToStringPar(ForkJoinSlice *slice, double d, MutableHandleString out)
{
JSString *str = js_NumberToString<NoGC>(slice, d);
JSString *str = NumberToString<NoGC>(slice, d);
if (!str)
return TP_RETRY_SEQUENTIALLY;
out.set(str);

View File

@ -1388,16 +1388,16 @@ js_NumberToStringWithBase(ThreadSafeContext *cx, double d, int base)
template <AllowGC allowGC>
JSString *
js_NumberToString(ThreadSafeContext *cx, double d)
js::NumberToString(ThreadSafeContext *cx, double d)
{
return js_NumberToStringWithBase<allowGC>(cx, d, 10);
}
template JSString *
js_NumberToString<CanGC>(ThreadSafeContext *cx, double d);
js::NumberToString<CanGC>(ThreadSafeContext *cx, double d);
template JSString *
js_NumberToString<NoGC>(ThreadSafeContext *cx, double d);
js::NumberToString<NoGC>(ThreadSafeContext *cx, double d);
template <AllowGC allowGC>
JSAtom *

View File

@ -44,6 +44,8 @@ extern const char js_parseInt_str[];
class JSAtom;
namespace js {
/*
* When base == 10, this function implements ToString() as specified by
* ECMA-262-5 section 9.8.1; but note that it handles integers specially for
@ -51,9 +53,7 @@ class JSAtom;
*/
template <js::AllowGC allowGC>
extern JSString *
js_NumberToString(js::ThreadSafeContext *cx, double d);
namespace js {
NumberToString(js::ThreadSafeContext *cx, double d);
template <js::AllowGC allowGC>
extern JSAtom *

View File

@ -3862,7 +3862,7 @@ js::ToStringSlow(ExclusiveContext *cx, typename MaybeRooted<Value, allowGC>::Han
} else if (v.isInt32()) {
str = Int32ToString<allowGC>(cx, v.toInt32());
} else if (v.isDouble()) {
str = js_NumberToString<allowGC>(cx, v.toDouble());
str = NumberToString<allowGC>(cx, v.toDouble());
} else if (v.isBoolean()) {
str = js_BooleanToString(cx, v.toBoolean());
} else if (v.isNull()) {