| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 #define V8_DEFAULT_STACK_SIZE_KB 864 | 82 #define V8_DEFAULT_STACK_SIZE_KB 864 |
| 83 #else | 83 #else |
| 84 // Slightly less than 1MB, since Windows' default stack size for | 84 // Slightly less than 1MB, since Windows' default stack size for |
| 85 // the main execution thread is 1MB for both 32 and 64-bit. | 85 // the main execution thread is 1MB for both 32 and 64-bit. |
| 86 #define V8_DEFAULT_STACK_SIZE_KB 984 | 86 #define V8_DEFAULT_STACK_SIZE_KB 984 |
| 87 #endif | 87 #endif |
| 88 | 88 |
| 89 | 89 |
| 90 // Determine whether double field unboxing feature is enabled. | 90 // Determine whether double field unboxing feature is enabled. |
| 91 #if V8_TARGET_ARCH_64_BIT | 91 #if V8_TARGET_ARCH_64_BIT |
| 92 #define V8_DOUBLE_FIELDS_UNBOXING 1 | 92 #define V8_DOUBLE_FIELDS_UNBOXING 0 |
| 93 #else | 93 #else |
| 94 #define V8_DOUBLE_FIELDS_UNBOXING 0 | 94 #define V8_DOUBLE_FIELDS_UNBOXING 0 |
| 95 #endif | 95 #endif |
| 96 | 96 |
| 97 | 97 |
| 98 typedef uint8_t byte; | 98 typedef uint8_t byte; |
| 99 typedef byte* Address; | 99 typedef byte* Address; |
| 100 | 100 |
| 101 // ----------------------------------------------------------------------------- | 101 // ----------------------------------------------------------------------------- |
| 102 // Constants | 102 // Constants |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 DCHECK(IsValidFunctionKind(kind)); | 889 DCHECK(IsValidFunctionKind(kind)); |
| 890 return kind & | 890 return kind & |
| 891 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | | 891 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | |
| 892 FunctionKind::kDefaultConstructor); | 892 FunctionKind::kDefaultConstructor); |
| 893 } | 893 } |
| 894 } } // namespace v8::internal | 894 } } // namespace v8::internal |
| 895 | 895 |
| 896 namespace i = v8::internal; | 896 namespace i = v8::internal; |
| 897 | 897 |
| 898 #endif // V8_GLOBALS_H_ | 898 #endif // V8_GLOBALS_H_ |
| OLD | NEW |