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

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

Issue 2456323002: Fix flag implications for --predictable. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | 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 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 DEFINE_IMPLICATION(print_all_code, code_comments) 1155 DEFINE_IMPLICATION(print_all_code, code_comments)
1156 #ifdef DEBUG 1156 #ifdef DEBUG
1157 DEFINE_IMPLICATION(print_all_code, trace_codegen) 1157 DEFINE_IMPLICATION(print_all_code, trace_codegen)
1158 #endif 1158 #endif
1159 #endif 1159 #endif
1160 1160
1161 #undef FLAG 1161 #undef FLAG
1162 #define FLAG FLAG_FULL 1162 #define FLAG FLAG_FULL
1163 1163
1164 // 1164 //
1165 // Predictable mode related flags.
1166 //
1167
1168 DEFINE_BOOL(predictable, false, "enable predictable mode")
1169 DEFINE_IMPLICATION(predictable, single_threaded)
1170 DEFINE_NEG_IMPLICATION(predictable, memory_reducer)
1171
1172 //
1165 // Threading related flags. 1173 // Threading related flags.
1166 // 1174 //
1167 1175
1168 DEFINE_BOOL(single_threaded, false, "disable the use of background tasks") 1176 DEFINE_BOOL(single_threaded, false, "disable the use of background tasks")
1169 DEFINE_NEG_IMPLICATION(single_threaded, concurrent_recompilation) 1177 DEFINE_NEG_IMPLICATION(single_threaded, concurrent_recompilation)
1170 DEFINE_NEG_IMPLICATION(single_threaded, concurrent_sweeping) 1178 DEFINE_NEG_IMPLICATION(single_threaded, concurrent_sweeping)
1171 DEFINE_NEG_IMPLICATION(single_threaded, parallel_compaction) 1179 DEFINE_NEG_IMPLICATION(single_threaded, parallel_compaction)
1172 1180
1173 //
1174 // Predictable mode related flags.
1175 //
1176
1177 DEFINE_BOOL(predictable, false, "enable predictable mode")
1178 DEFINE_IMPLICATION(predictable, single_threaded)
1179 DEFINE_NEG_IMPLICATION(predictable, memory_reducer)
1180 1181
1181 #undef FLAG 1182 #undef FLAG
1182 1183
1183 #ifdef VERIFY_PREDICTABLE 1184 #ifdef VERIFY_PREDICTABLE
1184 #define FLAG FLAG_FULL 1185 #define FLAG FLAG_FULL
1185 #else 1186 #else
1186 #define FLAG FLAG_READONLY 1187 #define FLAG FLAG_READONLY
1187 #endif 1188 #endif
1188 1189
1189 DEFINE_BOOL(verify_predictable, false, 1190 DEFINE_BOOL(verify_predictable, false,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 #undef DEFINE_ALIAS_FLOAT 1228 #undef DEFINE_ALIAS_FLOAT
1228 #undef DEFINE_ALIAS_ARGS 1229 #undef DEFINE_ALIAS_ARGS
1229 1230
1230 #undef FLAG_MODE_DECLARE 1231 #undef FLAG_MODE_DECLARE
1231 #undef FLAG_MODE_DEFINE 1232 #undef FLAG_MODE_DEFINE
1232 #undef FLAG_MODE_DEFINE_DEFAULTS 1233 #undef FLAG_MODE_DEFINE_DEFAULTS
1233 #undef FLAG_MODE_META 1234 #undef FLAG_MODE_META
1234 #undef FLAG_MODE_DEFINE_IMPLICATIONS 1235 #undef FLAG_MODE_DEFINE_IMPLICATIONS
1235 1236
1236 #undef COMMA 1237 #undef COMMA
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698