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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // stack allocating MacroAssembler takes 120K bytes. | 74 // stack allocating MacroAssembler takes 120K bytes. |
75 // See issue crbug.com/405338 | 75 // See issue crbug.com/405338 |
76 #define V8_DEFAULT_STACK_SIZE_KB 864 | 76 #define V8_DEFAULT_STACK_SIZE_KB 864 |
77 #else | 77 #else |
78 // Slightly less than 1MB, since Windows' default stack size for | 78 // Slightly less than 1MB, since Windows' default stack size for |
79 // the main execution thread is 1MB for both 32 and 64-bit. | 79 // the main execution thread is 1MB for both 32 and 64-bit. |
80 #define V8_DEFAULT_STACK_SIZE_KB 984 | 80 #define V8_DEFAULT_STACK_SIZE_KB 984 |
81 #endif | 81 #endif |
82 | 82 |
83 | 83 |
84 // Determine whether double field unboxing feature is enabled. | |
85 #if (V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM64) | |
86 #define V8_DOUBLE_FIELDS_UNBOXING 0 | |
87 #else | |
88 #define V8_DOUBLE_FIELDS_UNBOXING 0 | |
89 #endif | |
90 | |
91 // Support for alternative bool type. This is only enabled if the code is | 84 // Support for alternative bool type. This is only enabled if the code is |
92 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. | 85 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. |
93 // For instance, 'bool b = "false";' results in b == true! This is a hidden | 86 // For instance, 'bool b = "false";' results in b == true! This is a hidden |
94 // source of bugs. | 87 // source of bugs. |
95 // However, redefining the bool type does have some negative impact on some | 88 // However, redefining the bool type does have some negative impact on some |
96 // platforms. It gives rise to compiler warnings (i.e. with | 89 // platforms. It gives rise to compiler warnings (i.e. with |
97 // MSVC) in the API header files when mixing code that uses the standard | 90 // MSVC) in the API header files when mixing code that uses the standard |
98 // bool with code that uses the redefined version. | 91 // bool with code that uses the redefined version. |
99 // This does not actually belong in the platform code, but needs to be | 92 // This does not actually belong in the platform code, but needs to be |
100 // defined here because the platform code uses bool, and platform.h is | 93 // defined here because the platform code uses bool, and platform.h is |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 | 819 |
827 inline bool IsDefaultConstructorCallSuper(FunctionKind kind) { | 820 inline bool IsDefaultConstructorCallSuper(FunctionKind kind) { |
828 DCHECK(IsValidFunctionKind(kind)); | 821 DCHECK(IsValidFunctionKind(kind)); |
829 return kind & FunctionKind::kDefaultConstructorCallSuper; | 822 return kind & FunctionKind::kDefaultConstructorCallSuper; |
830 } | 823 } |
831 } } // namespace v8::internal | 824 } } // namespace v8::internal |
832 | 825 |
833 namespace i = v8::internal; | 826 namespace i = v8::internal; |
834 | 827 |
835 #endif // V8_GLOBALS_H_ | 828 #endif // V8_GLOBALS_H_ |
OLD | NEW |