Chromium Code Reviews

Side by Side Diff: src/globals.h

Issue 391693002: In-object double fields unboxing (for 64-bit only). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')
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 "include/v8stdint.h" 8 #include "include/v8stdint.h"
9 9
10 #include "src/base/build_config.h" 10 #include "src/base/build_config.h"
(...skipping 38 matching lines...)
49 #define USE_SIMULATOR 1 49 #define USE_SIMULATOR 1
50 #endif 50 #endif
51 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64) 51 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64)
52 #define USE_SIMULATOR 1 52 #define USE_SIMULATOR 1
53 #endif 53 #endif
54 #endif 54 #endif
55 55
56 // Determine whether the architecture uses an out-of-line constant pool. 56 // Determine whether the architecture uses an out-of-line constant pool.
57 #define V8_OOL_CONSTANT_POOL 0 57 #define V8_OOL_CONSTANT_POOL 0
58 58
59 // Determine whether double field unboxing feature is enabled.
60 #if (V8_TARGET_ARCH_X64)
61 #define V8_DOUBLE_FIELDS_UNBOXING 0
62 #else
63 #define V8_DOUBLE_FIELDS_UNBOXING 0
64 #endif
65
59 // Support for alternative bool type. This is only enabled if the code is 66 // Support for alternative bool type. This is only enabled if the code is
60 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. 67 // compiled with USE_MYBOOL defined. This catches some nasty type bugs.
61 // For instance, 'bool b = "false";' results in b == true! This is a hidden 68 // For instance, 'bool b = "false";' results in b == true! This is a hidden
62 // source of bugs. 69 // source of bugs.
63 // However, redefining the bool type does have some negative impact on some 70 // However, redefining the bool type does have some negative impact on some
64 // platforms. It gives rise to compiler warnings (i.e. with 71 // platforms. It gives rise to compiler warnings (i.e. with
65 // MSVC) in the API header files when mixing code that uses the standard 72 // MSVC) in the API header files when mixing code that uses the standard
66 // bool with code that uses the redefined version. 73 // bool with code that uses the redefined version.
67 // This does not actually belong in the platform code, but needs to be 74 // This does not actually belong in the platform code, but needs to be
68 // defined here because the platform code uses bool, and platform.h is 75 // defined here because the platform code uses bool, and platform.h is
(...skipping 656 matching lines...)
725 enum MinusZeroMode { 732 enum MinusZeroMode {
726 TREAT_MINUS_ZERO_AS_ZERO, 733 TREAT_MINUS_ZERO_AS_ZERO,
727 FAIL_ON_MINUS_ZERO 734 FAIL_ON_MINUS_ZERO
728 }; 735 };
729 736
730 } } // namespace v8::internal 737 } } // namespace v8::internal
731 738
732 namespace i = v8::internal; 739 namespace i = v8::internal;
733 740
734 #endif // V8_GLOBALS_H_ 741 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine