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

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

Issue 658563004: Example feature shipping CL. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « no previous file | tools/gyp/v8.gyp » ('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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 DEFINE_BOOL(use_strict, false, "enforce strict mode") 151 DEFINE_BOOL(use_strict, false, "enforce strict mode")
152 152
153 DEFINE_BOOL(es_staging, false, "enable upcoming ES6+ features") 153 DEFINE_BOOL(es_staging, false, "enable upcoming ES6+ features")
154 DEFINE_BOOL(harmony, false, "enable all harmony features (except proxies)") 154 DEFINE_BOOL(harmony, false, "enable all harmony features (except proxies)")
155 DEFINE_IMPLICATION(harmony, es_staging) 155 DEFINE_IMPLICATION(harmony, es_staging)
156 156
157 #define HARMONY_FEATURES(V) \ 157 #define HARMONY_FEATURES(V) \
158 V(harmony_scoping, "harmony block scoping") \ 158 V(harmony_scoping, "harmony block scoping") \
159 V(harmony_modules, "harmony modules (implies block scoping)") \ 159 V(harmony_modules, "harmony modules (implies block scoping)") \
160 V(harmony_strings, "harmony strings") \ 160 V(harmony_strings, "harmony strings") \
161 V(harmony_arrays, "harmony arrays") \
162 V(harmony_classes, "harmony classes") \ 161 V(harmony_classes, "harmony classes") \
163 V(harmony_object_literals, "harmony object literal extensions") \ 162 V(harmony_object_literals, "harmony object literal extensions") \
164 V(harmony_regexps, "reg-exp related harmony features") \ 163 V(harmony_regexps, "reg-exp related harmony features") \
165 V(harmony_arrow_functions, "harmony arrow functions") 164 V(harmony_arrow_functions, "harmony arrow functions")
166 165
167 #define STAGED_FEATURES(V) \ 166 #define STAGED_FEATURES(V) \
168 V(harmony_numeric_literals, "harmony numeric literals (0o77, 0b11)") 167 V(harmony_numeric_literals, "harmony numeric literals (0o77, 0b11)")
169 168
170 #define SHIPPING_FEATURES(V) 169 #define SHIPPING_FEATURES(V) V(harmony_arrays, "harmony arrays")
171 170
172 #define FLAG_FEATURES(id, description) \ 171 #define FLAG_FEATURES(id, description) \
173 DEFINE_BOOL(id, false, "enable " #description) \ 172 DEFINE_BOOL(id, false, "enable " #description) \
174 DEFINE_IMPLICATION(harmony, id) 173 DEFINE_IMPLICATION(harmony, id)
175 174
176 HARMONY_FEATURES(FLAG_FEATURES) 175 HARMONY_FEATURES(FLAG_FEATURES)
177 STAGED_FEATURES(FLAG_FEATURES) 176 STAGED_FEATURES(FLAG_FEATURES)
178 #undef FLAG_FEATURES 177 #undef FLAG_FEATURES
179 178
180 #define FLAG_STAGED_FEATURES(id, description) DEFINE_IMPLICATION(es_staging, id) 179 #define FLAG_STAGED_FEATURES(id, description) DEFINE_IMPLICATION(es_staging, id)
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 #undef DEFINE_ALIAS_FLOAT 947 #undef DEFINE_ALIAS_FLOAT
949 #undef DEFINE_ALIAS_ARGS 948 #undef DEFINE_ALIAS_ARGS
950 949
951 #undef FLAG_MODE_DECLARE 950 #undef FLAG_MODE_DECLARE
952 #undef FLAG_MODE_DEFINE 951 #undef FLAG_MODE_DEFINE
953 #undef FLAG_MODE_DEFINE_DEFAULTS 952 #undef FLAG_MODE_DEFINE_DEFAULTS
954 #undef FLAG_MODE_META 953 #undef FLAG_MODE_META
955 #undef FLAG_MODE_DEFINE_IMPLICATIONS 954 #undef FLAG_MODE_DEFINE_IMPLICATIONS
956 955
957 #undef COMMA 956 #undef COMMA
OLDNEW
« no previous file with comments | « no previous file | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698