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 15 matching lines...) Expand all Loading... |
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 || V8_TARGET_ARCH_X87 | 35 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_X87 |
| 36 |
36 #define V8_TURBOFAN_BACKEND 1 | 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 |
37 #else | 46 #else |
38 #define V8_TURBOFAN_BACKEND 0 | 47 #define V8_TURBOFAN_BACKEND 0 |
39 #endif | 48 #endif |
| 49 |
40 #if V8_TURBOFAN_BACKEND | 50 #if V8_TURBOFAN_BACKEND |
41 #define V8_TURBOFAN_TARGET 1 | 51 #define V8_TURBOFAN_TARGET 1 |
42 #else | 52 #else |
43 #define V8_TURBOFAN_TARGET 0 | 53 #define V8_TURBOFAN_TARGET 0 |
44 #endif | 54 #endif |
45 | 55 |
46 namespace v8 { | 56 namespace v8 { |
47 | 57 |
48 namespace base { | 58 namespace base { |
49 class Mutex; | 59 class Mutex; |
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 1006 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
997 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 1007 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
998 DCHECK(IsValidFunctionKind(kind)); | 1008 DCHECK(IsValidFunctionKind(kind)); |
999 return kind; | 1009 return kind; |
1000 } | 1010 } |
1001 } } // namespace v8::internal | 1011 } } // namespace v8::internal |
1002 | 1012 |
1003 namespace i = v8::internal; | 1013 namespace i = v8::internal; |
1004 | 1014 |
1005 #endif // V8_GLOBALS_H_ | 1015 #endif // V8_GLOBALS_H_ |
OLD | NEW |