Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: src/globals.h

Issue 753503002: Enable inobject double fields unboxing for 64-bit archs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Windows build fixed Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #define V8_DEFAULT_STACK_SIZE_KB 864 77 #define V8_DEFAULT_STACK_SIZE_KB 864
78 #else 78 #else
79 // Slightly less than 1MB, since Windows' default stack size for 79 // Slightly less than 1MB, since Windows' default stack size for
80 // the main execution thread is 1MB for both 32 and 64-bit. 80 // the main execution thread is 1MB for both 32 and 64-bit.
81 #define V8_DEFAULT_STACK_SIZE_KB 984 81 #define V8_DEFAULT_STACK_SIZE_KB 984
82 #endif 82 #endif
83 83
84 84
85 // Determine whether double field unboxing feature is enabled. 85 // Determine whether double field unboxing feature is enabled.
86 #if (V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM64) 86 #if (V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM64)
87 #define V8_DOUBLE_FIELDS_UNBOXING 0 87 #define V8_DOUBLE_FIELDS_UNBOXING 1
88 #else 88 #else
89 #define V8_DOUBLE_FIELDS_UNBOXING 0 89 #define V8_DOUBLE_FIELDS_UNBOXING 0
90 #endif 90 #endif
91 91
92 // Support for alternative bool type. This is only enabled if the code is 92 // Support for alternative bool type. This is only enabled if the code is
93 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. 93 // compiled with USE_MYBOOL defined. This catches some nasty type bugs.
94 // For instance, 'bool b = "false";' results in b == true! This is a hidden 94 // For instance, 'bool b = "false";' results in b == true! This is a hidden
95 // source of bugs. 95 // source of bugs.
96 // However, redefining the bool type does have some negative impact on some 96 // However, redefining the bool type does have some negative impact on some
97 // platforms. It gives rise to compiler warnings (i.e. with 97 // platforms. It gives rise to compiler warnings (i.e. with
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 DCHECK(IsValidFunctionKind(kind)); 820 DCHECK(IsValidFunctionKind(kind));
821 return kind & FunctionKind::kDefaultConstructor; 821 return kind & FunctionKind::kDefaultConstructor;
822 } 822 }
823 823
824 824
825 } } // namespace v8::internal 825 } } // namespace v8::internal
826 826
827 namespace i = v8::internal; 827 namespace i = v8::internal;
828 828
829 #endif // V8_GLOBALS_H_ 829 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698