diff options
author | Moonchild <moonchild@palemoon.org> | 2021-05-01 07:15:13 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-05-01 07:15:13 +0000 |
commit | 56da7e27477d0d4669980d2ce17f3b877ea0c36c (patch) | |
tree | db79249dc345cddddc68d9e96da05c1973bfd8b8 | |
parent | 0dd3424f774954627d6f53df9fb47379d9b5c871 (diff) | |
download | uxp-56da7e27477d0d4669980d2ce17f3b877ea0c36c.tar.gz |
Issue #1751 -- Remove XP_IOS
-rw-r--r-- | build/moz.configure/init.configure | 7 | ||||
-rw-r--r-- | config/gcc-stl-wrapper.template.h | 4 | ||||
-rw-r--r-- | gfx/2d/MacIOSurface.h | 6 | ||||
-rw-r--r-- | ipc/glue/SharedMemoryBasic_mach.mm | 12 | ||||
-rw-r--r-- | js/src/irregexp/NativeRegExpMacroAssembler.cpp | 13 | ||||
-rw-r--r-- | js/src/jit/ExecutableAllocator.h | 9 | ||||
-rw-r--r-- | js/src/jit/arm/Architecture-arm.h | 14 | ||||
-rw-r--r-- | toolkit/xre/nsXREDirProvider.cpp | 11 | ||||
-rw-r--r-- | xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp | 4 |
9 files changed, 6 insertions, 74 deletions
diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure index 1d0329db1e..b9cecc3221 100644 --- a/build/moz.configure/init.configure +++ b/build/moz.configure/init.configure @@ -550,13 +550,6 @@ def target_is_darwin(target): set_define('XP_DARWIN', target_is_darwin) @depends(target) -def target_is_ios(target): - if target.kernel == 'Darwin' and target.os == 'iOS': - return True - -set_define('XP_IOS', target_is_ios) - -@depends(target) def target_is_osx(target): if target.kernel == 'Darwin' and target.os == 'OSX': return True diff --git a/config/gcc-stl-wrapper.template.h b/config/gcc-stl-wrapper.template.h index e7b01482c2..3bc65bd6ab 100644 --- a/config/gcc-stl-wrapper.template.h +++ b/config/gcc-stl-wrapper.template.h @@ -8,9 +8,7 @@ #ifndef mozilla_${HEADER}_h #define mozilla_${HEADER}_h -// For some reason, Apple's GCC refuses to honor -fno-exceptions when -// compiling ObjC. -#if defined(__EXCEPTIONS) && __EXCEPTIONS && !(__OBJC__ && __GNUC__ && XP_IOS) +#if defined(__EXCEPTIONS) && __EXCEPTIONS # error "STL code can only be used with -fno-exceptions" #endif diff --git a/gfx/2d/MacIOSurface.h b/gfx/2d/MacIOSurface.h index 0d4f79a155..e9c76e5dd8 100644 --- a/gfx/2d/MacIOSurface.h +++ b/gfx/2d/MacIOSurface.h @@ -1,5 +1,4 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -// vim:set ts=2 sts=2 sw=2 et cin: /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -18,11 +17,6 @@ typedef struct CGContext* CGContextRef; typedef struct CGImage* CGImageRef; typedef uint32_t IOSurfaceID; -#ifdef XP_IOS -typedef kern_return_t IOReturn; -typedef int CGLError; -#endif - typedef CFTypeRef IOSurfacePtr; typedef IOSurfacePtr (*IOSurfaceCreateFunc) (CFDictionaryRef properties); typedef IOSurfacePtr (*IOSurfaceLookupFunc) (uint32_t io_surface_id); diff --git a/ipc/glue/SharedMemoryBasic_mach.mm b/ipc/glue/SharedMemoryBasic_mach.mm index 88753ee2e8..3ee5a854d5 100644 --- a/ipc/glue/SharedMemoryBasic_mach.mm +++ b/ipc/glue/SharedMemoryBasic_mach.mm @@ -1,5 +1,4 @@ /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- - * vim: sw=2 ts=8 et : */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this @@ -9,18 +8,7 @@ #include <mach/vm_map.h> #include <mach/mach_port.h> -#if defined(XP_IOS) -#include <mach/vm_map.h> -#define mach_vm_address_t vm_address_t -#define mach_vm_allocate vm_allocate -#define mach_vm_deallocate vm_deallocate -#define mach_vm_map vm_map -#define mach_vm_read vm_read -#define mach_vm_region_recurse vm_region_recurse_64 -#define mach_vm_size_t vm_size_t -#else #include <mach/mach_vm.h> -#endif #include <pthread.h> #include <unistd.h> #include "SharedMemoryBasic.h" diff --git a/js/src/irregexp/NativeRegExpMacroAssembler.cpp b/js/src/irregexp/NativeRegExpMacroAssembler.cpp index f2bee2dc54..a3756f5fff 100644 --- a/js/src/irregexp/NativeRegExpMacroAssembler.cpp +++ b/js/src/irregexp/NativeRegExpMacroAssembler.cpp @@ -131,14 +131,6 @@ NativeRegExpMacroAssembler::GenerateCode(JSContext* cx, bool match_only) pushedNonVolatileRegisters++; } -#if defined(XP_IOS) && defined(JS_CODEGEN_ARM) - // The stack is 4-byte aligned on iOS, force 8-byte alignment. - masm.movePtr(StackPointer, temp0); - masm.andPtr(Imm32(~7), StackPointer); - masm.push(temp0); - masm.push(temp0); -#endif - #ifndef JS_CODEGEN_X86 // The InputOutputData* is stored as an argument, save it on the stack // above the frame. @@ -405,11 +397,6 @@ NativeRegExpMacroAssembler::GenerateCode(JSContext* cx, bool match_only) masm.freeStack(frameSize); #endif -#if defined(XP_IOS) && defined(JS_CODEGEN_ARM) - masm.pop(temp0); - masm.movePtr(temp0, StackPointer); -#endif - // Restore non-volatile registers which were saved on entry. for (GeneralRegisterBackwardIterator iter(savedNonVolatileRegisters); iter.more(); ++iter) masm.Pop(*iter); diff --git a/js/src/jit/ExecutableAllocator.h b/js/src/jit/ExecutableAllocator.h index 39efd87893..8042ae7a98 100644 --- a/js/src/jit/ExecutableAllocator.h +++ b/js/src/jit/ExecutableAllocator.h @@ -68,10 +68,6 @@ extern "C" void sync_instruction_memory(caddr_t v, u_int len); #include <sys/cachectl.h> #endif -#if defined(JS_CODEGEN_ARM) && defined(XP_IOS) -#include <libkern/OSCacheControl.h> -#endif - namespace JS { struct CodeSizes; } // namespace JS @@ -255,11 +251,6 @@ class ExecutableAllocator { __clear_cache(code, reinterpret_cast<char*>(code) + size); } -#elif (defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_ARM64)) && defined(XP_IOS) - static void cacheFlush(void* code, size_t size) - { - sys_icache_invalidate(code, size); - } #elif defined(JS_CODEGEN_ARM) && (defined(__linux__) || defined(ANDROID)) && defined(__GNUC__) static void cacheFlush(void* code, size_t size) { diff --git a/js/src/jit/arm/Architecture-arm.h b/js/src/jit/arm/Architecture-arm.h index 1d16a51a81..d2c634798b 100644 --- a/js/src/jit/arm/Architecture-arm.h +++ b/js/src/jit/arm/Architecture-arm.h @@ -14,9 +14,8 @@ #include "js/Utility.h" // GCC versions 4.6 and above define __ARM_PCS_VFP to denote a hard-float -// ABI target. The iOS toolchain doesn't define anything specific here, -// but iOS always supports VFP. -#if defined(__ARM_PCS_VFP) || defined(XP_IOS) +// ABI target. +#if defined(__ARM_PCS_VFP) #define JS_CODEGEN_ARM_HARDFP #endif @@ -113,12 +112,7 @@ class Registers (1 << r0) | (1 << r1) | (1 << Registers::r2) | - (1 << Registers::r3) -#if defined(XP_IOS) - // per https://developer.apple.com/library/ios/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARMv6FunctionCallingConventions.html#//apple_ref/doc/uid/TP40009021-SW4 - | (1 << Registers::r9) -#endif - ; + (1 << Registers::r3); static const SetType NonVolatileMask = (1 << Registers::r4) | @@ -126,9 +120,7 @@ class Registers (1 << Registers::r6) | (1 << Registers::r7) | (1 << Registers::r8) | -#if !defined(XP_IOS) (1 << Registers::r9) | -#endif (1 << Registers::r10) | (1 << Registers::r11) | (1 << Registers::r12) | diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp index 151eb34e53..158fe541bd 100644 --- a/toolkit/xre/nsXREDirProvider.cpp +++ b/toolkit/xre/nsXREDirProvider.cpp @@ -58,9 +58,6 @@ #ifdef XP_UNIX #include <ctype.h> #endif -#ifdef XP_IOS -#include "UIKitDirProvider.h" -#endif #if defined(XP_MACOSX) #define APP_REGISTRY_NAME "Application Registry" @@ -1310,14 +1307,6 @@ nsXREDirProvider::GetUserDataDirectoryHome(nsIFile** aFile, bool aLocal) NS_ENSURE_SUCCESS(rv, rv); localDir = do_QueryInterface(dirFileMac, &rv); -#elif defined(XP_IOS) - nsAutoCString userDir; - if (GetUIKitDirectory(aLocal, userDir)) { - rv = NS_NewNativeLocalFile(userDir, true, getter_AddRefs(localDir)); - } else { - rv = NS_ERROR_FAILURE; - } - NS_ENSURE_SUCCESS(rv, rv); #elif defined(XP_WIN) nsString path; if (aLocal) { diff --git a/xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp b/xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp index ef725e5e32..6475132bcf 100644 --- a/xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp +++ b/xpcom/reflect/xptcall/md/unix/xptcinvoke_arm.cpp @@ -9,8 +9,8 @@ #include "mozilla/Compiler.h" -#if !defined(__arm__) && !(defined(LINUX) || defined(XP_IOS)) -#error "This code is for Linux/iOS ARM only. Check that it works on your system, too.\nBeware that this code is highly compiler dependent." +#if !defined(__arm__) && !(defined(LINUX) +#error "This code is for Linux ARM only. Check that it works on your system, too.\nBeware that this code is highly compiler dependent." #endif #if MOZ_IS_GCC |