зеркало из https://github.com/mozilla/gecko-dev.git
Bug 977538 - Disable PGO for CanonicalizeNaN. r=luke
--HG-- extra : rebase_source : 7be8e2eb69297cafa8e705c738e9ed814ad50308
This commit is contained in:
Родитель
dec11c8b56
Коммит
556e355bad
|
@ -862,6 +862,10 @@ GenericNaN()
|
|||
return mozilla::SpecificNaN<double>(0, 0x8000000000000ULL);
|
||||
}
|
||||
|
||||
/* MSVC with PGO miscompiles this function. */
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("g", off)
|
||||
#endif
|
||||
static inline double
|
||||
CanonicalizeNaN(double d)
|
||||
{
|
||||
|
@ -869,6 +873,9 @@ CanonicalizeNaN(double d)
|
|||
return GenericNaN();
|
||||
return d;
|
||||
}
|
||||
#if defined(_MSC_VER)
|
||||
# pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* JS::Value is the interface for a single JavaScript Engine value. A few
|
||||
|
|
Загрузка…
Ссылка в новой задаче