]>
git.saurik.com Git - apple/javascriptcore.git/blob - llint/LLIntOfflineAsmConfig.h
2 * Copyright (C) 2012 Apple Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 #ifndef LLIntOfflineAsmConfig_h
27 #define LLIntOfflineAsmConfig_h
29 #include "LLIntCommon.h"
30 #include <wtf/Assertions.h>
31 #include <wtf/InlineASM.h>
34 #define OFFLINE_ASM_C_LOOP 1
35 #define OFFLINE_ASM_X86 0
36 #define OFFLINE_ASM_X86_WIN 0
37 #define OFFLINE_ASM_ARM 0
38 #define OFFLINE_ASM_ARMv7 0
39 #define OFFLINE_ASM_ARMv7_TRADITIONAL 0
40 #define OFFLINE_ASM_ARM64 0
41 #define OFFLINE_ASM_X86_64 0
42 #define OFFLINE_ASM_X86_64_WIN 0
43 #define OFFLINE_ASM_ARMv7k 0
44 #define OFFLINE_ASM_ARMv7s 0
45 #define OFFLINE_ASM_MIPS 0
46 #define OFFLINE_ASM_SH4 0
50 #define OFFLINE_ASM_C_LOOP 0
52 #if CPU(X86) && !PLATFORM(WIN)
53 #define OFFLINE_ASM_X86 1
55 #define OFFLINE_ASM_X86 0
58 #if CPU(X86) && PLATFORM(WIN)
59 #define OFFLINE_ASM_X86_WIN 1
61 #define OFFLINE_ASM_X86_WIN 0
64 #ifdef __ARM_ARCH_7K__
65 #define OFFLINE_ASM_ARMv7k 1
67 #define OFFLINE_ASM_ARMv7k 0
70 #ifdef __ARM_ARCH_7S__
71 #define OFFLINE_ASM_ARMv7s 1
73 #define OFFLINE_ASM_ARMv7s 0
77 #define OFFLINE_ASM_ARMv7 1
79 #define OFFLINE_ASM_ARMv7 0
82 #if CPU(ARM_TRADITIONAL)
83 #if WTF_ARM_ARCH_AT_LEAST(7)
84 #define OFFLINE_ASM_ARMv7_TRADITIONAL 1
85 #define OFFLINE_ASM_ARM 0
87 #define OFFLINE_ASM_ARM 1
88 #define OFFLINE_ASM_ARMv7_TRADITIONAL 0
91 #define OFFLINE_ASM_ARMv7_TRADITIONAL 0
92 #define OFFLINE_ASM_ARM 0
95 #if CPU(X86_64) && !PLATFORM(WIN)
96 #define OFFLINE_ASM_X86_64 1
98 #define OFFLINE_ASM_X86_64 0
101 #if CPU(X86_64) && PLATFORM(WIN)
102 #define OFFLINE_ASM_X86_64_WIN 1
104 #define OFFLINE_ASM_X86_64_WIN 0
108 #define OFFLINE_ASM_MIPS 1
110 #define OFFLINE_ASM_MIPS 0
114 #define OFFLINE_ASM_SH4 1
116 #define OFFLINE_ASM_SH4 0
120 #define OFFLINE_ASM_ARM64 1
122 #define OFFLINE_ASM_ARM64 0
129 #define OFFLINE_ASM_CPLOAD(reg) \
131 ".cpload " SX(reg) "\n" \
134 #define OFFLINE_ASM_CPLOAD(reg)
138 #endif // ENABLE(JIT)
141 #define OFFLINE_ASM_JSVALUE64 1
143 #define OFFLINE_ASM_JSVALUE64 0
147 #define OFFLINE_ASM_ASSERT_ENABLED 1
149 #define OFFLINE_ASM_ASSERT_ENABLED 0
153 #define OFFLINE_ASM_BIG_ENDIAN 1
155 #define OFFLINE_ASM_BIG_ENDIAN 0
158 #if LLINT_EXECUTION_TRACING
159 #define OFFLINE_ASM_EXECUTION_TRACING 1
161 #define OFFLINE_ASM_EXECUTION_TRACING 0
165 #define OFFLINE_ASM_GGC 1
167 #define OFFLINE_ASM_GGC 0
170 #endif // LLIntOfflineAsmConfig_h