OLD | NEW |
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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // TODO(rmcilroy): Remove ignition-staging and set these implications directly | 262 // TODO(rmcilroy): Remove ignition-staging and set these implications directly |
263 // with the turbo flag. | 263 // with the turbo flag. |
264 DEFINE_BOOL(ignition_staging, false, "use ignition with all staged features") | 264 DEFINE_BOOL(ignition_staging, false, "use ignition with all staged features") |
265 DEFINE_IMPLICATION(ignition_staging, ignition) | 265 DEFINE_IMPLICATION(ignition_staging, ignition) |
266 DEFINE_IMPLICATION(ignition_staging, compiler_dispatcher) | 266 DEFINE_IMPLICATION(ignition_staging, compiler_dispatcher) |
267 DEFINE_IMPLICATION(ignition_staging, validate_asm) | 267 DEFINE_IMPLICATION(ignition_staging, validate_asm) |
268 | 268 |
269 // Flags for experimental implementation features. | 269 // Flags for experimental implementation features. |
270 DEFINE_BOOL(allocation_site_pretenuring, true, | 270 DEFINE_BOOL(allocation_site_pretenuring, true, |
271 "pretenure with allocation sites") | 271 "pretenure with allocation sites") |
| 272 DEFINE_BOOL(mark_shared_functions_for_tier_up, false, |
| 273 "mark shared functions for tier up") |
272 DEFINE_BOOL(page_promotion, true, "promote pages based on utilization") | 274 DEFINE_BOOL(page_promotion, true, "promote pages based on utilization") |
273 DEFINE_INT(page_promotion_threshold, 70, | 275 DEFINE_INT(page_promotion_threshold, 70, |
274 "min percentage of live bytes on a page to enable fast evacuation") | 276 "min percentage of live bytes on a page to enable fast evacuation") |
| 277 DEFINE_BOOL(smi_binop, true, "support smi representation in binary operations") |
275 DEFINE_BOOL(trace_pretenuring, false, | 278 DEFINE_BOOL(trace_pretenuring, false, |
276 "trace pretenuring decisions of HAllocate instructions") | 279 "trace pretenuring decisions of HAllocate instructions") |
277 DEFINE_BOOL(trace_pretenuring_statistics, false, | 280 DEFINE_BOOL(trace_pretenuring_statistics, false, |
278 "trace allocation site pretenuring statistics") | 281 "trace allocation site pretenuring statistics") |
279 DEFINE_BOOL(track_fields, true, "track fields with only smi values") | 282 DEFINE_BOOL(track_fields, true, "track fields with only smi values") |
280 DEFINE_BOOL(track_double_fields, true, "track fields with double values") | 283 DEFINE_BOOL(track_double_fields, true, "track fields with double values") |
281 DEFINE_BOOL(track_heap_object_fields, true, "track fields with heap values") | 284 DEFINE_BOOL(track_heap_object_fields, true, "track fields with heap values") |
282 DEFINE_BOOL(track_computed_fields, true, "track computed boilerplate fields") | 285 DEFINE_BOOL(track_computed_fields, true, "track computed boilerplate fields") |
283 DEFINE_IMPLICATION(track_double_fields, track_fields) | 286 DEFINE_IMPLICATION(track_double_fields, track_fields) |
284 DEFINE_IMPLICATION(track_heap_object_fields, track_fields) | 287 DEFINE_IMPLICATION(track_heap_object_fields, track_fields) |
285 DEFINE_IMPLICATION(track_computed_fields, track_fields) | 288 DEFINE_IMPLICATION(track_computed_fields, track_fields) |
286 DEFINE_BOOL(track_field_types, true, "track field types") | 289 DEFINE_BOOL(track_field_types, true, "track field types") |
287 DEFINE_IMPLICATION(track_field_types, track_fields) | 290 DEFINE_IMPLICATION(track_field_types, track_fields) |
288 DEFINE_IMPLICATION(track_field_types, track_heap_object_fields) | 291 DEFINE_IMPLICATION(track_field_types, track_heap_object_fields) |
289 DEFINE_BOOL(smi_binop, true, "support smi representation in binary operations") | 292 DEFINE_BOOL(type_profile, false, "collect type information") |
290 DEFINE_BOOL(mark_shared_functions_for_tier_up, false, | |
291 "mark shared functions for tier up") | |
292 | 293 |
293 // Flags for strongly rooting literal arrays in the feedback vector. | 294 // Flags for strongly rooting literal arrays in the feedback vector. |
294 DEFINE_BOOL(trace_strong_rooted_literals, false, "trace literal rooting") | 295 DEFINE_BOOL(trace_strong_rooted_literals, false, "trace literal rooting") |
295 | 296 |
296 // Flags for optimization types. | 297 // Flags for optimization types. |
297 DEFINE_BOOL(optimize_for_size, false, | 298 DEFINE_BOOL(optimize_for_size, false, |
298 "Enables optimizations which favor memory size over execution " | 299 "Enables optimizations which favor memory size over execution " |
299 "speed") | 300 "speed") |
300 | 301 |
301 DEFINE_VALUE_IMPLICATION(optimize_for_size, max_semi_space_size, 1) | 302 DEFINE_VALUE_IMPLICATION(optimize_for_size, max_semi_space_size, 1) |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 #undef DEFINE_ALIAS_FLOAT | 1311 #undef DEFINE_ALIAS_FLOAT |
1311 #undef DEFINE_ALIAS_ARGS | 1312 #undef DEFINE_ALIAS_ARGS |
1312 | 1313 |
1313 #undef FLAG_MODE_DECLARE | 1314 #undef FLAG_MODE_DECLARE |
1314 #undef FLAG_MODE_DEFINE | 1315 #undef FLAG_MODE_DEFINE |
1315 #undef FLAG_MODE_DEFINE_DEFAULTS | 1316 #undef FLAG_MODE_DEFINE_DEFAULTS |
1316 #undef FLAG_MODE_META | 1317 #undef FLAG_MODE_META |
1317 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1318 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1318 | 1319 |
1319 #undef COMMA | 1320 #undef COMMA |
OLD | NEW |