Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(161684)

Side by Side Diff: Modules/_ctypes/libffi_ios/include/ffitarget_arm64.h

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #ifdef __arm64__
2
3 /* Copyright (c) 2009, 2010, 2011, 2012 ARM Ltd.
4
5 Permission is hereby granted, free of charge, to any person obtaining
6 a copy of this software and associated documentation files (the
7 ``Software''), to deal in the Software without restriction, including
8 without limitation the rights to use, copy, modify, merge, publish,
9 distribute, sublicense, and/or sell copies of the Software, and to
10 permit persons to whom the Software is furnished to do so, subject to
11 the following conditions:
12
13 The above copyright notice and this permission notice shall be
14 included in all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
23
24 #ifndef LIBFFI_TARGET_H
25 #define LIBFFI_TARGET_H
26
27 #ifndef LIBFFI_H
28 #error "Please do not include ffitarget.h directly into your source. Use ffi.h instead."
29 #endif
30
31 #ifndef LIBFFI_ASM
32 #ifdef __ILP32__
33 #define FFI_SIZEOF_ARG 8
34 typedef unsigned long long ffi_arg;
35 typedef signed long long ffi_sarg;
36 #else
37 typedef unsigned long ffi_arg;
38 typedef signed long ffi_sarg;
39 #endif
40
41 typedef enum ffi_abi
42 {
43 FFI_FIRST_ABI = 0,
44 FFI_SYSV,
45 FFI_LAST_ABI,
46 FFI_DEFAULT_ABI = FFI_SYSV
47 } ffi_abi;
48 #endif
49
50 /* ---- Definitions for closures ----------------------------------------- */
51
52 #define FFI_CLOSURES 1
53 #define FFI_NATIVE_RAW_API 0
54
55 #if defined (FFI_EXEC_TRAMPOLINE_TABLE) && FFI_EXEC_TRAMPOLINE_TABLE
56
57 #ifdef __MACH__
58 #define FFI_TRAMPOLINE_SIZE 16
59 #define FFI_TRAMPOLINE_CLOSURE_OFFSET 16
60 #else
61 #error "No trampoline table implementation"
62 #endif
63
64 #else
65 #define FFI_TRAMPOLINE_SIZE 24
66 #define FFI_TRAMPOLINE_CLOSURE_OFFSET FFI_TRAMPOLINE_SIZE
67 #endif
68
69 /* ---- Internal ---- */
70
71 #if defined (__APPLE__)
72 #define FFI_TARGET_SPECIFIC_VARIADIC
73 #define FFI_EXTRA_CIF_FIELDS unsigned aarch64_nfixedargs
74 #else
75 /* iOS reserves x18 for the system. Disable Go closures until
76 a new static chain is chosen. */
77 #define FFI_GO_CLOSURES 1
78 #endif
79
80 #define FFI_TARGET_HAS_COMPLEX_TYPE
81
82 #endif
83
84
85 #endif
OLDNEW
« no previous file with comments | « Modules/_ctypes/libffi_ios/include/ffi_i386.h ('k') | Modules/_ctypes/libffi_ios/include/ffitarget_armv7.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+