File webkitgtk-aarch64.patch of Package webkitgtk
From ab7f87b2d22ba689a6e4b519a3ee6a939902c6ea Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@suse.de>
Date: Mon, 13 May 2013 15:31:45 +0200
Subject: [PATCH] Add support for AAarch64
* wtf/Platform.h: Add support for AArch64.
* wtf/dtoa/utils.h: Likewise.
---
Source/WTF/wtf/Platform.h | 13 +++++++++++--
Source/WTF/wtf/dtoa/utils.h | 2 +-
2 files changed, 12 insertions(+), 3 deletions(-)
Index: webkitgtk-2.3.3/Source/WTF/wtf/Platform.h
===================================================================
--- webkitgtk-2.3.3.orig/Source/WTF/wtf/Platform.h
+++ webkitgtk-2.3.3/Source/WTF/wtf/Platform.h
@@ -317,6 +317,14 @@
#define WTF_CPU_NEEDS_ALIGNED_ACCESS 1
#endif
+/* CPU(AARCH64) - AArch64 */
+#if defined(__aarch64__)
+#define WTF_CPU_AARCH64 1
+#if defined(__AARCH64BE__)
+#define WTF_CPU_BIG_ENDIAN 1
+#endif
+#endif
+
/* ==== OS() - underlying operating system; only to be used for mandated low-level services like
virtual memory, not to choose a GUI toolkit ==== */
@@ -656,7 +656,8 @@
|| CPU(ARM64) \
|| CPU(S390X) \
|| CPU(PPC64) \
- || CPU(PPC64LE)
+ || CPU(PPC64LE) \
+ || CPU(AARCH64)
#define WTF_USE_JSVALUE64 1
#else
#define WTF_USE_JSVALUE32_64 1
@@ -833,7 +842,7 @@
#define ENABLE_REGEXP_TRACING 0
/* Yet Another Regex Runtime - turned on by default for JIT enabled ports. */
-#if !defined(ENABLE_YARR_JIT) && (ENABLE(JIT) || ENABLE(LLINT_C_LOOP))
+#if !defined(ENABLE_YARR_JIT) && (ENABLE(JIT) || ENABLE(LLINT_C_LOOP)) && !CPU(AARCH64) && !CPU(PPC)
#define ENABLE_YARR_JIT 1
/* Setting this flag compares JIT results with interpreter results. */
Index: webkitgtk-2.3.3/Source/WTF/wtf/dtoa/utils.h
===================================================================
--- webkitgtk-2.3.3.orig/Source/WTF/wtf/dtoa/utils.h
+++ webkitgtk-2.3.3/Source/WTF/wtf/dtoa/utils.h
@@ -49,7 +49,7 @@
defined(__ARMEL__) || \
defined(_MIPS_ARCH_MIPS32R2)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
-#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || OS(WINCE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(ALPHA) || CPU(ARM64) || CPU(HPPA)
+#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || OS(WINCE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(ALPHA) || CPU(ARM64) || CPU(HPPA) || CPU(AARCH64)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(_M_IX86) || defined(__i386__)
#if defined(_WIN32)