diff options
-rw-r--r-- | src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp | 22 | ||||
-rwxr-xr-x | src/third_party/mozjs/get-sources.sh | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp b/src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp index decf1a1569d..971cf006f8a 100644 --- a/src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp +++ b/src/third_party/mozjs/extract/js/src/jit/CacheIRCompiler.cpp @@ -6395,22 +6395,44 @@ bool CacheIRCompiler::emitCompareBigIntStringResult(JSOp op, break; } case JSOp::Lt: { +#ifndef _MSC_VER constexpr auto LessThan = ComparisonKind::LessThan; +#else + // The static_cast works around an internal compiler error in MSVC. + constexpr auto LessThan = static_cast<bool>(ComparisonKind::LessThan); +#endif callvm.call<FnBigIntString, BigIntStringCompare<LessThan>>(); break; } case JSOp::Gt: { +#ifndef _MSC_VER constexpr auto LessThan = ComparisonKind::LessThan; +#else + // The static_cast works around an internal compiler error in MSVC. + constexpr auto LessThan = static_cast<bool>(ComparisonKind::LessThan); +#endif callvm.call<FnStringBigInt, StringBigIntCompare<LessThan>>(); break; } case JSOp::Le: { +#ifndef _MSC_VER constexpr auto GreaterThanOrEqual = ComparisonKind::GreaterThanOrEqual; +#else + // The static_cast works around an internal compiler error in MSVC. + constexpr auto GreaterThanOrEqual = + static_cast<bool>(ComparisonKind::GreaterThanOrEqual); +#endif callvm.call<FnStringBigInt, StringBigIntCompare<GreaterThanOrEqual>>(); break; } case JSOp::Ge: { +#ifndef _MSC_VER constexpr auto GreaterThanOrEqual = ComparisonKind::GreaterThanOrEqual; +#else + // The static_cast works around an internal compiler error in MSVC. + constexpr auto GreaterThanOrEqual = + static_cast<bool>(ComparisonKind::GreaterThanOrEqual); +#endif callvm.call<FnBigIntString, BigIntStringCompare<GreaterThanOrEqual>>(); break; } diff --git a/src/third_party/mozjs/get-sources.sh b/src/third_party/mozjs/get-sources.sh index 18e09f63935..c61d8cdd24e 100755 --- a/src/third_party/mozjs/get-sources.sh +++ b/src/third_party/mozjs/get-sources.sh @@ -9,7 +9,7 @@ set -vx NAME=spidermonkey LIB_GIT_BRANCH=spidermonkey-esr91.3-cpp-only -LIB_GIT_REVISION=56b91512f0c6d8db9e676403e2b7b6634beb00d4 +LIB_GIT_REVISION=82aac6af18abcd5bf188afbc821779ccb0ca0902 LIB_GIT_REPO=git@github.com:mongodb-forks/spidermonkey.git DEST_DIR=$(git rev-parse --show-toplevel)/src/third_party/mozjs |