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

Side by Side Diff: src/flag-definitions.h

Issue 340373002: [Arm]: Simplify compile-time Arm feature detection. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months 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/arm/assembler-arm.cc ('k') | src/flags.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 // This file defines all of the flags. It is separated into different section, 5 // This file defines all of the flags. It is separated into different section,
6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the 6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the
7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'. 7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'.
8 // 8 //
9 // This include does not have a guard, because it is a template-style include, 9 // This include does not have a guard, because it is a template-style include,
10 // which can be included multiple times in different modes. It expects to have 10 // which can be included multiple times in different modes. It expects to have
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 MaybeBoolFlag flag; 98 MaybeBoolFlag flag;
99 flag.has_value = has_value; 99 flag.has_value = has_value;
100 flag.value = value; 100 flag.value = value;
101 return flag; 101 return flag;
102 } 102 }
103 bool has_value; 103 bool has_value;
104 bool value; 104 bool value;
105 }; 105 };
106 #endif 106 #endif
107 107
108 #if (defined CAN_USE_VFP3_INSTRUCTIONS) || !(defined ARM_TEST) 108 #if (defined CAN_USE_VFP3_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE)
109 # define ENABLE_VFP3_DEFAULT true 109 # define ENABLE_VFP3_DEFAULT true
110 #else 110 #else
111 # define ENABLE_VFP3_DEFAULT false 111 # define ENABLE_VFP3_DEFAULT false
112 #endif 112 #endif
113 #if (defined CAN_USE_ARMV7_INSTRUCTIONS) || !(defined ARM_TEST) 113 #if (defined CAN_USE_ARMV7_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE)
114 # define ENABLE_ARMV7_DEFAULT true 114 # define ENABLE_ARMV7_DEFAULT true
115 #else 115 #else
116 # define ENABLE_ARMV7_DEFAULT false 116 # define ENABLE_ARMV7_DEFAULT false
117 #endif 117 #endif
118 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST) 118 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST_NO_FEATURE_PROBE)
119 # define ENABLE_32DREGS_DEFAULT true 119 # define ENABLE_32DREGS_DEFAULT true
120 #else 120 #else
121 # define ENABLE_32DREGS_DEFAULT false 121 # define ENABLE_32DREGS_DEFAULT false
122 #endif 122 #endif
123 #if (defined CAN_USE_NEON) || !(defined ARM_TEST) 123 #if (defined CAN_USE_NEON) || !(defined ARM_TEST_NO_FEATURE_PROBE)
124 # define ENABLE_NEON_DEFAULT true 124 # define ENABLE_NEON_DEFAULT true
125 #else 125 #else
126 # define ENABLE_NEON_DEFAULT false 126 # define ENABLE_NEON_DEFAULT false
127 #endif 127 #endif
128 128
129 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) 129 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt)
130 #define DEFINE_maybe_bool(nam, cmt) FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, \ 130 #define DEFINE_maybe_bool(nam, cmt) FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, \
131 { false COMMA false }, cmt) 131 { false COMMA false }, cmt)
132 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) 132 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt)
133 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) 133 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt)
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 #undef DEFINE_ALIAS_float 896 #undef DEFINE_ALIAS_float
897 #undef DEFINE_ALIAS_args 897 #undef DEFINE_ALIAS_args
898 898
899 #undef FLAG_MODE_DECLARE 899 #undef FLAG_MODE_DECLARE
900 #undef FLAG_MODE_DEFINE 900 #undef FLAG_MODE_DEFINE
901 #undef FLAG_MODE_DEFINE_DEFAULTS 901 #undef FLAG_MODE_DEFINE_DEFAULTS
902 #undef FLAG_MODE_META 902 #undef FLAG_MODE_META
903 #undef FLAG_MODE_DEFINE_IMPLICATIONS 903 #undef FLAG_MODE_DEFINE_IMPLICATIONS
904 904
905 #undef COMMA 905 #undef COMMA
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698