]>
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_ARMv7s 0
44 #define OFFLINE_ASM_MIPS 0
45 #define OFFLINE_ASM_SH4 0
49 #define OFFLINE_ASM_C_LOOP 0
51 #if CPU(X86) && !PLATFORM(WIN)
52 #define OFFLINE_ASM_X86 1
54 #define OFFLINE_ASM_X86 0
57 #if CPU(X86) && PLATFORM(WIN)
58 #define OFFLINE_ASM_X86_WIN 1
60 #define OFFLINE_ASM_X86_WIN 0
63 #ifdef __ARM_ARCH_7S__
64 #define OFFLINE_ASM_ARMv7s 1
66 #define OFFLINE_ASM_ARMv7s 0
70 #define OFFLINE_ASM_ARMv7 1
72 #define OFFLINE_ASM_ARMv7 0
75 #if CPU(ARM_TRADITIONAL)
76 #if WTF_ARM_ARCH_AT_LEAST(7)
77 #define OFFLINE_ASM_ARMv7_TRADITIONAL 1
78 #define OFFLINE_ASM_ARM 0
80 #define OFFLINE_ASM_ARM 1
81 #define OFFLINE_ASM_ARMv7_TRADITIONAL 0
84 #define OFFLINE_ASM_ARMv7_TRADITIONAL 0
85 #define OFFLINE_ASM_ARM 0
88 #if CPU(X86_64) && !PLATFORM(WIN)
89 #define OFFLINE_ASM_X86_64 1
91 #define OFFLINE_ASM_X86_64 0
94 #if CPU(X86_64) && PLATFORM(WIN)
95 #define OFFLINE_ASM_X86_64_WIN 1
97 #define OFFLINE_ASM_X86_64_WIN 0
101 #define OFFLINE_ASM_MIPS 1
103 #define OFFLINE_ASM_MIPS 0
107 #define OFFLINE_ASM_SH4 1
109 #define OFFLINE_ASM_SH4 0
113 #define OFFLINE_ASM_ARM64 1
115 #define OFFLINE_ASM_ARM64 0
122 #define OFFLINE_ASM_CPLOAD(reg) \
124 ".cpload " SX(reg) "\n" \
127 #define OFFLINE_ASM_CPLOAD(reg)
131 #endif // ENABLE(JIT)
134 #define OFFLINE_ASM_JSVALUE64 1
136 #define OFFLINE_ASM_JSVALUE64 0
140 #define OFFLINE_ASM_ASSERT_ENABLED 1
142 #define OFFLINE_ASM_ASSERT_ENABLED 0
146 #define OFFLINE_ASM_BIG_ENDIAN 1
148 #define OFFLINE_ASM_BIG_ENDIAN 0
151 #if LLINT_EXECUTION_TRACING
152 #define OFFLINE_ASM_EXECUTION_TRACING 1
154 #define OFFLINE_ASM_EXECUTION_TRACING 0
157 #if LLINT_ALWAYS_ALLOCATE_SLOW
158 #define OFFLINE_ASM_ALWAYS_ALLOCATE_SLOW 1
160 #define OFFLINE_ASM_ALWAYS_ALLOCATE_SLOW 0
164 #define OFFLINE_ASM_GGC 1
166 #define OFFLINE_ASM_GGC 0
169 #endif // LLIntOfflineAsmConfig_h