summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-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,