OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #elif V8_LIBC_MSVCRT | 25 #elif V8_LIBC_MSVCRT |
26 # define V8_INFINITY HUGE_VAL | 26 # define V8_INFINITY HUGE_VAL |
27 #elif V8_OS_AIX | 27 #elif V8_OS_AIX |
28 #define V8_INFINITY (__builtin_inff()) | 28 #define V8_INFINITY (__builtin_inff()) |
29 #else | 29 #else |
30 # define V8_INFINITY INFINITY | 30 # define V8_INFINITY INFINITY |
31 #endif | 31 #endif |
32 | 32 |
33 #if V8_TARGET_ARCH_IA32 || (V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_32_BIT) || \ | 33 #if V8_TARGET_ARCH_IA32 || (V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_32_BIT) || \ |
34 V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ | 34 V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ |
35 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC | 35 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_X87 |
36 #define V8_TURBOFAN_BACKEND 1 | 36 #define V8_TURBOFAN_BACKEND 1 |
37 #else | 37 #else |
38 #define V8_TURBOFAN_BACKEND 0 | 38 #define V8_TURBOFAN_BACKEND 0 |
39 #endif | 39 #endif |
40 #if V8_TURBOFAN_BACKEND | 40 #if V8_TURBOFAN_BACKEND |
41 #define V8_TURBOFAN_TARGET 1 | 41 #define V8_TURBOFAN_TARGET 1 |
42 #else | 42 #else |
43 #define V8_TURBOFAN_TARGET 0 | 43 #define V8_TURBOFAN_TARGET 0 |
44 #endif | 44 #endif |
45 | 45 |
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 996 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
997 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 997 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
998 DCHECK(IsValidFunctionKind(kind)); | 998 DCHECK(IsValidFunctionKind(kind)); |
999 return kind; | 999 return kind; |
1000 } | 1000 } |
1001 } } // namespace v8::internal | 1001 } } // namespace v8::internal |
1002 | 1002 |
1003 namespace i = v8::internal; | 1003 namespace i = v8::internal; |
1004 | 1004 |
1005 #endif // V8_GLOBALS_H_ | 1005 #endif // V8_GLOBALS_H_ |
OLD | NEW |