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 0 | 92 #define V8_DOUBLE_FIELDS_UNBOXING 1 |
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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 | 837 |
838 inline bool IsSubclassConstructor(FunctionKind kind) { | 838 inline bool IsSubclassConstructor(FunctionKind kind) { |
839 DCHECK(IsValidFunctionKind(kind)); | 839 DCHECK(IsValidFunctionKind(kind)); |
840 return kind & FunctionKind::kSubclassConstructor; | 840 return kind & FunctionKind::kSubclassConstructor; |
841 } | 841 } |
842 } } // namespace v8::internal | 842 } } // namespace v8::internal |
843 | 843 |
844 namespace i = v8::internal; | 844 namespace i = v8::internal; |
845 | 845 |
846 #endif // V8_GLOBALS_H_ | 846 #endif // V8_GLOBALS_H_ |
OLD | NEW |