mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 676739 - Part 3: Rename js_NumberToString to js::NumberToString. r=luke
This commit is contained in:
parent
eb950d9412
commit
d5040c4e47
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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 *
|
||||
|
@ -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 *
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user