Debian Codegraph @

debian/patches/loongarch64_jscore.diff

raw symbols SCIP
1 Description: add loongarch64 support
2 Author: Ding Song <[email protected]>
3 Forwarded: not-needed
4 Relevant change in upstream webkit, which diverged from our fork:
5 https://github.com/WebKit/WebKit/commit/647e67b23883960f
6 Last-Update: 2024-02-25
7
8 --- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
9 +++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
10 @@ -387,6 +387,11 @@
11
12 #endif /* ARM */
13
14 +/* CPU(LOONGARCH64) - LOONGARCH64 */
15 +#if defined(__loongarch64)
16 +#define WTF_CPU_LOONGARCH64 1
17 +#endif
18 +
19 #if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_))
20 #define WTF_CPU_MIPS 1
21 #include <sgidefs.h>
22 @@ -970,7 +975,7 @@
23 #endif
24
25 #if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64)
26 -#if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64) || CPU(RISCV64) || CPU(S390X)
27 +#if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64) || CPU(RISCV64) || CPU(S390X) || CPU(LOONGARCH64)
28 #define WTF_USE_JSVALUE64 1
29 #elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32)
30 #define WTF_USE_JSVALUE32 1