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 12 matching lines...) Expand all Loading... |
23 # include <limits> // NOLINT | 23 # include <limits> // NOLINT |
24 # define V8_INFINITY std::numeric_limits<double>::infinity() | 24 # define V8_INFINITY std::numeric_limits<double>::infinity() |
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) || \ | |
34 V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ | |
35 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_X87 | |
36 | |
37 #define V8_TURBOFAN_BACKEND 1 | |
38 #if V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS64 || \ | |
39 V8_TARGET_ARCH_PPC64 | |
40 // 64-bit TurboFan backends support 64-bit integer arithmetic. | |
41 #define V8_TURBOFAN_BACKEND_64 1 | |
42 #else | |
43 #define V8_TURBOFAN_BACKEND_64 0 | |
44 #endif | |
45 | |
46 #else | |
47 #define V8_TURBOFAN_BACKEND 0 | |
48 #endif | |
49 | |
50 #if V8_TURBOFAN_BACKEND | |
51 #define V8_TURBOFAN_TARGET 1 | |
52 #else | |
53 #define V8_TURBOFAN_TARGET 0 | |
54 #endif | |
55 | |
56 namespace v8 { | 33 namespace v8 { |
57 | 34 |
58 namespace base { | 35 namespace base { |
59 class Mutex; | 36 class Mutex; |
60 class RecursiveMutex; | 37 class RecursiveMutex; |
61 class VirtualMemory; | 38 class VirtualMemory; |
62 } | 39 } |
63 | 40 |
64 namespace internal { | 41 namespace internal { |
65 | 42 |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 1007 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
1031 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 1008 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
1032 DCHECK(IsValidFunctionKind(kind)); | 1009 DCHECK(IsValidFunctionKind(kind)); |
1033 return kind; | 1010 return kind; |
1034 } | 1011 } |
1035 } } // namespace v8::internal | 1012 } } // namespace v8::internal |
1036 | 1013 |
1037 namespace i = v8::internal; | 1014 namespace i = v8::internal; |
1038 | 1015 |
1039 #endif // V8_GLOBALS_H_ | 1016 #endif // V8_GLOBALS_H_ |
OLD | NEW |