| 1 |
Description: Add support for s390/s390x architectures |
| 2 |
Author: Dan Horák <[email protected]> |
| 3 |
Origin: vendor (http://trac.webkit.org/changeset?old_path=%2Ftrunk&old=71843+&new_path=%2Ftrunk&new=71844+) |
| 4 |
Forwarded: no |
| 5 |
Last-Update: 2019-03-26 |
| 6 |
|
| 7 |
--- |
| 8 |
src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h | 14 +++++++++++++- |
| 9 |
1 file changed, 13 insertions(+), 1 deletion(-) |
| 10 |
|
| 11 |
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h |
| 12 |
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h |
| 13 |
@@ -226,6 +226,18 @@ |
| 14 |
#define WTF_CPU_SPARC 1 |
| 15 |
#endif |
| 16 |
|
| 17 |
+/* CPU(S390X) - S390 64-bit */ |
| 18 |
+#if defined(__s390x__) |
| 19 |
+#define WTF_CPU_S390X 1 |
| 20 |
+#define WTF_CPU_BIG_ENDIAN 1 |
| 21 |
+#endif |
| 22 |
+ |
| 23 |
+/* CPU(S390) - S390 32-bit */ |
| 24 |
+#if defined(__s390__) |
| 25 |
+#define WTF_CPU_S390 1 |
| 26 |
+#define WTF_CPU_BIG_ENDIAN 1 |
| 27 |
+#endif |
| 28 |
+ |
| 29 |
/* CPU(X86) - i386 / x86 32-bit */ |
| 30 |
#if defined(__i386__) \ |
| 31 |
|| defined(i386) \ |
| 32 |
@@ -958,7 +970,7 @@ |
| 33 |
#endif |
| 34 |
|
| 35 |
#if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64) |
| 36 |
|
| 37 |
+#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) |
| 38 |
#define WTF_USE_JSVALUE64 1 |
| 39 |
#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32) |
| 40 |
#define WTF_USE_JSVALUE32 1 |