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

Side by Side Diff: src/globals.h

Issue 711313002: Reland "In-object double fields unboxing (for 64-bit only)." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The fix Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
84 // Support for alternative bool type. This is only enabled if the code is 91 // Support for alternative bool type. This is only enabled if the code is
85 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. 92 // compiled with USE_MYBOOL defined. This catches some nasty type bugs.
86 // For instance, 'bool b = "false";' results in b == true! This is a hidden 93 // For instance, 'bool b = "false";' results in b == true! This is a hidden
87 // source of bugs. 94 // source of bugs.
88 // However, redefining the bool type does have some negative impact on some 95 // However, redefining the bool type does have some negative impact on some
89 // platforms. It gives rise to compiler warnings (i.e. with 96 // platforms. It gives rise to compiler warnings (i.e. with
90 // MSVC) in the API header files when mixing code that uses the standard 97 // MSVC) in the API header files when mixing code that uses the standard
91 // bool with code that uses the redefined version. 98 // bool with code that uses the redefined version.
92 // This does not actually belong in the platform code, but needs to be 99 // This does not actually belong in the platform code, but needs to be
93 // defined here because the platform code uses bool, and platform.h is 100 // defined here because the platform code uses bool, and platform.h is
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 826
820 inline bool IsDefaultConstructorCallSuper(FunctionKind kind) { 827 inline bool IsDefaultConstructorCallSuper(FunctionKind kind) {
821 DCHECK(IsValidFunctionKind(kind)); 828 DCHECK(IsValidFunctionKind(kind));
822 return kind & FunctionKind::kDefaultConstructorCallSuper; 829 return kind & FunctionKind::kDefaultConstructorCallSuper;
823 } 830 }
824 } } // namespace v8::internal 831 } } // namespace v8::internal
825 832
826 namespace i = v8::internal; 833 namespace i = v8::internal;
827 834
828 #endif // V8_GLOBALS_H_ 835 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698