summaryrefslogtreecommitdiff
path: root/js/public
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 /js/public
parent574d071b5cb96fa0c63dacb66a2573699703c481 (diff)
downloaduxp-53662b791d5f860791fea476c6377438cc60f921.tar.gz
Bug 1430693 - IonMonkey: MIPS: Fix generic NaN for legacy mips (IEEE 754-1985)
Tag: #1542
Diffstat (limited to 'js/public')
-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 272d9b478d..bc0fd0ec72 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,