summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-12 12:40:13 +0800
committerJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-14 16:31:59 +0800
commit53662b791d5f860791fea476c6377438cc60f921 (patch)
treee8110b71ceeeffdad888d96aea712ad47795a3c7
parent574d071b5cb96fa0c63dacb66a2573699703c481 (diff)
downloadUXP-53662b791d5f860791fea476c6377438cc60f921.tar
UXP-53662b791d5f860791fea476c6377438cc60f921.tar.gz
UXP-53662b791d5f860791fea476c6377438cc60f921.tar.lz
UXP-53662b791d5f860791fea476c6377438cc60f921.tar.xz
UXP-53662b791d5f860791fea476c6377438cc60f921.zip
Bug 1430693 - IonMonkey: MIPS: Fix generic NaN for legacy mips (IEEE 754-1985)
Tag: #1542
-rw-r--r--js/public/Value.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/public/Value.h b/js/public/Value.h
index 272d9b478..bc0fd0ec7 100644
--- a/js/public/Value.h
+++ b/js/public/Value.h
@@ -229,7 +229,11 @@ static inline JS::Value PoisonedObjectValue(JSObject* obj);
namespace detail {
constexpr int CanonicalizedNaNSignBit = 0;
+#if defined(__mips__) && !defined(__mips_nan2008)
+constexpr uint64_t CanonicalizedNaNSignificand = 0x7FFFFFFFFFFFFULL;
+#else
constexpr uint64_t CanonicalizedNaNSignificand = 0x8000000000000ULL;
+#endif
constexpr uint64_t CanonicalizedNaNBits =
mozilla::SpecificNaNBits<double,