mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Turn PGO off for various functions (bug 791214, r=jandem).
This commit is contained in:
parent
af314435e2
commit
51923f08a7
@ -417,6 +417,10 @@ js_math_min(JSContext *cx, unsigned argc, Value *vp)
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
// Disable PGO for Math.pow() and related functions (see bug 791214).
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("g", off)
|
||||
#endif
|
||||
double
|
||||
js::powi(double x, int y)
|
||||
{
|
||||
@ -444,7 +448,14 @@ js::powi(double x, int y)
|
||||
m *= m;
|
||||
}
|
||||
}
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
// Disable PGO for Math.pow() and related functions (see bug 791214).
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("g", off)
|
||||
#endif
|
||||
double
|
||||
js::ecmaPow(double x, double y)
|
||||
{
|
||||
@ -456,7 +467,14 @@ js::ecmaPow(double x, double y)
|
||||
return js_NaN;
|
||||
return pow(x, y);
|
||||
}
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
// Disable PGO for Math.pow() and related functions (see bug 791214).
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("g", off)
|
||||
#endif
|
||||
JSBool
|
||||
js_math_pow(JSContext *cx, unsigned argc, Value *vp)
|
||||
{
|
||||
@ -501,6 +519,9 @@ js_math_pow(JSContext *cx, unsigned argc, Value *vp)
|
||||
vp->setNumber(z);
|
||||
return JS_TRUE;
|
||||
}
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
static const int64_t RNG_MULTIPLIER = 0x5DEECE66DLL;
|
||||
static const int64_t RNG_ADDEND = 0xBLL;
|
||||
|
@ -1329,6 +1329,9 @@ js::NumberValueToStringBuffer(JSContext *cx, const Value &v, StringBuffer &sb)
|
||||
return sb.appendInflated(cstr, cstrlen);
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("g", off)
|
||||
#endif
|
||||
JS_PUBLIC_API(bool)
|
||||
js::ToNumberSlow(JSContext *cx, Value v, double *out)
|
||||
{
|
||||
@ -1387,6 +1390,9 @@ js::ToNumberSlow(JSContext *cx, Value v, double *out)
|
||||
*out = js_NaN;
|
||||
return true;
|
||||
}
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Convert a value to an int64_t, according to the WebIDL rules for long long
|
||||
|
@ -379,6 +379,11 @@ ic::Equality(VMFrame &f, ic::EqualityICInfo *ic)
|
||||
return ic->stub(f);
|
||||
}
|
||||
|
||||
// Disable PGO as a precaution (see bug 791214).
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("g", off)
|
||||
#endif
|
||||
|
||||
static void * JS_FASTCALL
|
||||
SlowCallFromIC(VMFrame &f, ic::CallICInfo *ic)
|
||||
{
|
||||
@ -1423,6 +1428,10 @@ ic::SplatApplyArgs(VMFrame &f)
|
||||
return true;
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
void
|
||||
ic::GenerateArgumentCheckStub(VMFrame &f)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user