From 084ea153c12cc76674964003d74dbe69ea989e8f Mon Sep 17 00:00:00 2001 From: Jiaxun Yang Date: Tue, 12 May 2020 12:40:13 +0800 Subject: Bug 1430693 - IonMonkey: MIPS: Fix generic NaN for legacy mips (IEEE 754-1985) Tag: #1542 --- js/public/Value.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/public') 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 Date: Sat, 30 May 2020 21:14:43 +0200 Subject: Issue #1570 - Implement globalThis This resolves #1570 --- js/public/Class.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/public') diff --git a/js/public/Class.h b/js/public/Class.h index f4fa9ccaf..3d73bce44 100644 --- a/js/public/Class.h +++ b/js/public/Class.h @@ -779,7 +779,7 @@ struct JSClass { // application. #define JSCLASS_GLOBAL_APPLICATION_SLOTS 5 #define JSCLASS_GLOBAL_SLOT_COUNT \ - (JSCLASS_GLOBAL_APPLICATION_SLOTS + JSProto_LIMIT * 2 + 45) + (JSCLASS_GLOBAL_APPLICATION_SLOTS + JSProto_LIMIT * 2 + 46) #define JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(n) \ (JSCLASS_IS_GLOBAL | JSCLASS_HAS_RESERVED_SLOTS(JSCLASS_GLOBAL_SLOT_COUNT + (n))) #define JSCLASS_GLOBAL_FLAGS \ -- cgit v1.2.3