Lines Matching refs:FLAG
6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the
23 // this will just be an extern declaration, but for a readonly flag we let the
31 // We want to supply the actual storage and value for the flag variable in the
42 // We need to define all of our default values so that the Flag structure can
50 // printing / etc in the flag parser code. We only do this for writable flags.
53 { Flag::TYPE_##ftype, #nam, &FLAG_##nam, &FLAGDEFAULT_##nam, cmt, false } \
57 Flag::TYPE_##ftype, #alias, &FLAG_##nam, &FLAGDEFAULT_##nam, \
62 // We produce the code to set flags when it is implied by another flag.
114 MaybeBoolFlag flag;
115 flag.has_value = has_value;
116 flag.value = value;
117 return flag;
156 #define DEFINE_BOOL(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt)
160 FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, {false COMMA false}, cmt)
161 #define DEFINE_INT(nam, def, cmt) FLAG(INT, int, nam, def, cmt)
162 #define DEFINE_FLOAT(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt)
163 #define DEFINE_STRING(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt)
164 #define DEFINE_ARGS(nam, cmt) FLAG(ARGS, JSArguments, nam, {0 COMMA NULL}, cmt)
176 #define FLAG FLAG_FULL
206 // Features that are complete (but still behind --harmony/es-staging flag).
225 // Features that are shipping (turned on by default, but internal flag remains).
906 DEFINE_FLOAT(testing_float_flag, 2.5, "float-flag")
907 DEFINE_STRING(testing_string_flag, "Hello, world!", "string-flag")
930 "Test mode only flag. It allows an unit test to select evacuation "
951 #undef FLAG
953 #define FLAG FLAG_FULL
955 #define FLAG FLAG_READONLY
973 #undef FLAG
975 #define FLAG FLAG_FULL
977 #define FLAG FLAG_READONLY
1045 #undef FLAG
1046 #define FLAG FLAG_FULL
1106 #undef FLAG
1108 #define FLAG FLAG_FULL
1110 #define FLAG FLAG_READONLY
1162 #undef FLAG
1163 #define FLAG FLAG_FULL
1183 #undef FLAG
1186 #define FLAG FLAG_FULL
1188 #define FLAG FLAG_READONLY
1199 #undef FLAG
1200 #define FLAG FLAG_READONLY
1213 #undef FLAG