diff options
author | Vicente Olivert Riera <Vincent.Riera@imgtec.com> | 2013-12-02 16:33:48 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-03 17:33:03 +0100 |
commit | 1cd14aeaed5aad718b910da2a3eb64477105af3f (patch) | |
tree | 3a3a224339240da6af981389294f8767ff207bca /src/3rdparty | |
parent | cb28e6ba28baff4d7f90fa468ea939fd24bd7165 (diff) | |
download | qt4-tools-1cd14aeaed5aad718b910da2a3eb64477105af3f.tar.gz |
qtscript: Add support for MIPS64 platforms
This fix do not apply to Qt 5 because qtscript has been already patched
in 408847dcdfe1d407cd85616e8f595fb5ea25ca46
Task-number: QTBUG-35030
Change-Id: I0eb71aa875afef9eee15a203b9bd24f5395a3463
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Reviewed-by: YunQiang Su <wzssyqa@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h index 17c06bf48d..f8e76a313f 100644 --- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h +++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h @@ -325,6 +325,28 @@ #endif /* ARM */ +/* CPU(MIPS) - MIPS, any version */ +#if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_)) +#define WTF_CPU_MIPS 1 +#include <sgidefs.h> +#if defined(__MIPSEB__) +#define WTF_CPU_BIG_ENDIAN 1 +#endif +/* CPU(MIPS64) - MIPS 64-bit both BIG and LITTLE endian */ +#if defined(_MIPS_SIM_ABI64) && (_MIPS_SIM == _MIPS_SIM_ABI64) +#define WTF_CPU_MIPS64 1 +#endif + +/* CPU(MIPSN32) - MIPS N32 ABI both BIG and LITTLE endian */ +#if defined(_MIPS_SIM_ABIN32) && (_MIPS_SIM == _MIPS_SIM_ABIN32) +#define WTF_CPU_MIPSN32 1 +#endif + +/* CPU(MIPS32) - MIPS O32 ABI both BIG and LITTLE endian */ +#if defined(_MIPS_SIM_ABI32) && (_MIPS_SIM == _MIPS_SIM_ABI32) +#define WTF_CPU_MIPS32 1 +#endif +#endif /* __mips__ */ /* ==== OS() - underlying operating system; only to be used for mandated low-level services like @@ -873,7 +895,7 @@ #endif #if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64) -#if (CPU(X86_64) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) +#if (CPU(X86_64) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) #define WTF_USE_JSVALUE64 1 #elif CPU(ARM) || CPU(PPC64) #define WTF_USE_JSVALUE32 1 |