browser(webkit): Fix WebKit compilation on Ubuntu 18.04 (#11514)

This commit is contained in:
Diego Pino 2022-01-21 00:46:34 +08:00 committed by GitHub
parent 5876799228
commit 5a15d2cd4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 2 deletions

View file

@ -1,2 +1,2 @@
1598
Changed: dpino@igalia.com Thu 20 Jan 2022 03:29:49 AM UTC
1599
Changed: dpino@igalia.com Thu Jan 20 22:58:31 HKT 2022

View file

@ -1818,6 +1818,34 @@ index 5219f8f7242b86f940e82823584e61fe2ba49e61..51bd401528326fc8fea07ed052d0f561
// Do not use icu::TimeZone::createDefault. ICU internally has a cache for timezone and createDefault returns this cached value.
m_timeZoneCache = std::unique_ptr<OpaqueICUTimeZone, OpaqueICUTimeZoneDeleter>(bitwise_cast<OpaqueICUTimeZone*>(icu::TimeZone::detectHostTimeZone()));
#endif
diff --git a/Source/JavaScriptCore/wasm/WasmCompilationMode.h b/Source/JavaScriptCore/wasm/WasmCompilationMode.h
index 6f134e33eb8ebdd3888fdb068df7bfcd0c4225fd..1e3f2f08ee3bcb1d4a52009907a2dd9e622c4c67 100644
--- a/Source/JavaScriptCore/wasm/WasmCompilationMode.h
+++ b/Source/JavaScriptCore/wasm/WasmCompilationMode.h
@@ -50,7 +50,6 @@ constexpr inline bool isOSREntry(CompilationMode compilationMode)
case CompilationMode::OMGForOSREntryMode:
return true;
}
- RELEASE_ASSERT_UNDER_CONSTEXPR_CONTEXT(false);
}
constexpr inline bool isAnyBBQ(CompilationMode compilationMode)
@@ -65,7 +64,6 @@ constexpr inline bool isAnyBBQ(CompilationMode compilationMode)
case CompilationMode::EmbedderEntrypointMode:
return false;
}
- RELEASE_ASSERT_UNDER_CONSTEXPR_CONTEXT(false);
}
constexpr inline bool isAnyOMG(CompilationMode compilationMode)
@@ -80,7 +78,6 @@ constexpr inline bool isAnyOMG(CompilationMode compilationMode)
case CompilationMode::EmbedderEntrypointMode:
return false;
}
- RELEASE_ASSERT_UNDER_CONSTEXPR_CONTEXT(false);
}
} } // namespace JSC::Wasm
diff --git a/Source/PlatformWPE.cmake b/Source/PlatformWPE.cmake
index fabd776e617d07a6c30b9f2df30f884491259359..d9c39df7db565545108c765407ce1cda544856f7 100644
--- a/Source/PlatformWPE.cmake