| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") | 188 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") |
| 189 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") | 189 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") |
| 190 DEFINE_bool(compiled_transitions, false, "use optimizing compiler to " | 190 DEFINE_bool(compiled_transitions, false, "use optimizing compiler to " |
| 191 "generate array elements transition stubs") | 191 "generate array elements transition stubs") |
| 192 DEFINE_bool(compiled_keyed_stores, true, "use optimizing compiler to " | 192 DEFINE_bool(compiled_keyed_stores, true, "use optimizing compiler to " |
| 193 "generate keyed store stubs") | 193 "generate keyed store stubs") |
| 194 DEFINE_bool(clever_optimizations, | 194 DEFINE_bool(clever_optimizations, |
| 195 true, | 195 true, |
| 196 "Optimize object size, Array shift, DOM strings and string +") | 196 "Optimize object size, Array shift, DOM strings and string +") |
| 197 DEFINE_bool(pretenuring, true, "allocate objects in old space") | 197 DEFINE_bool(pretenuring, true, "allocate objects in old space") |
| 198 // TODO(hpayer): We will remove this flag as soon as we have pretenuring | |
| 199 // support for specific allocation sites. | |
| 200 DEFINE_bool(pretenuring_call_new, false, "pretenure call new") | |
| 201 DEFINE_bool(track_fields, true, "track fields with only smi values") | 198 DEFINE_bool(track_fields, true, "track fields with only smi values") |
| 202 DEFINE_bool(track_double_fields, true, "track fields with double values") | 199 DEFINE_bool(track_double_fields, true, "track fields with double values") |
| 203 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values") | 200 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values") |
| 204 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields") | 201 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields") |
| 205 DEFINE_implication(track_double_fields, track_fields) | 202 DEFINE_implication(track_double_fields, track_fields) |
| 206 DEFINE_implication(track_heap_object_fields, track_fields) | 203 DEFINE_implication(track_heap_object_fields, track_fields) |
| 207 DEFINE_implication(track_computed_fields, track_fields) | 204 DEFINE_implication(track_computed_fields, track_fields) |
| 208 | 205 |
| 209 // Flags for data representation optimizations | 206 // Flags for data representation optimizations |
| 210 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 207 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 "perform array index dehoisting") | 257 "perform array index dehoisting") |
| 261 DEFINE_bool(analyze_environment_liveness, true, | 258 DEFINE_bool(analyze_environment_liveness, true, |
| 262 "analyze liveness of environment slots and zap dead values") | 259 "analyze liveness of environment slots and zap dead values") |
| 263 DEFINE_bool(dead_code_elimination, true, "use dead code elimination") | 260 DEFINE_bool(dead_code_elimination, true, "use dead code elimination") |
| 264 DEFINE_bool(fold_constants, true, "use constant folding") | 261 DEFINE_bool(fold_constants, true, "use constant folding") |
| 265 DEFINE_bool(trace_dead_code_elimination, false, "trace dead code elimination") | 262 DEFINE_bool(trace_dead_code_elimination, false, "trace dead code elimination") |
| 266 DEFINE_bool(unreachable_code_elimination, false, | 263 DEFINE_bool(unreachable_code_elimination, false, |
| 267 "eliminate unreachable code (hidden behind soft deopts)") | 264 "eliminate unreachable code (hidden behind soft deopts)") |
| 268 DEFINE_bool(track_allocation_sites, true, | 265 DEFINE_bool(track_allocation_sites, true, |
| 269 "Use allocation site info to reduce transitions") | 266 "Use allocation site info to reduce transitions") |
| 270 DEFINE_bool(optimize_constructed_arrays, true, | |
| 271 "Use allocation site info on constructed arrays") | |
| 272 DEFINE_bool(trace_osr, false, "trace on-stack replacement") | 267 DEFINE_bool(trace_osr, false, "trace on-stack replacement") |
| 273 DEFINE_int(stress_runs, 0, "number of stress runs") | 268 DEFINE_int(stress_runs, 0, "number of stress runs") |
| 274 DEFINE_bool(optimize_closures, true, "optimize closures") | 269 DEFINE_bool(optimize_closures, true, "optimize closures") |
| 275 DEFINE_bool(lookup_sample_by_shared, true, | 270 DEFINE_bool(lookup_sample_by_shared, true, |
| 276 "when picking a function to optimize, watch for shared function " | 271 "when picking a function to optimize, watch for shared function " |
| 277 "info, not JSFunction itself") | 272 "info, not JSFunction itself") |
| 278 DEFINE_bool(cache_optimized_code, true, | 273 DEFINE_bool(cache_optimized_code, true, |
| 279 "cache optimized code for closures") | 274 "cache optimized code for closures") |
| 280 DEFINE_bool(flush_optimized_code_cache, true, | 275 DEFINE_bool(flush_optimized_code_cache, true, |
| 281 "flushes the cache of optimized code for closures on every GC") | 276 "flushes the cache of optimized code for closures on every GC") |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 DEFINE_bool(mask_constants_with_cookie, | 387 DEFINE_bool(mask_constants_with_cookie, |
| 393 true, | 388 true, |
| 394 "use random jit cookie to mask large constants") | 389 "use random jit cookie to mask large constants") |
| 395 | 390 |
| 396 // codegen.cc | 391 // codegen.cc |
| 397 DEFINE_bool(lazy, true, "use lazy compilation") | 392 DEFINE_bool(lazy, true, "use lazy compilation") |
| 398 DEFINE_bool(trace_opt, false, "trace lazy optimization") | 393 DEFINE_bool(trace_opt, false, "trace lazy optimization") |
| 399 DEFINE_bool(trace_opt_stats, false, "trace lazy optimization statistics") | 394 DEFINE_bool(trace_opt_stats, false, "trace lazy optimization statistics") |
| 400 DEFINE_bool(opt, true, "use adaptive optimizations") | 395 DEFINE_bool(opt, true, "use adaptive optimizations") |
| 401 DEFINE_bool(always_opt, false, "always try to optimize functions") | 396 DEFINE_bool(always_opt, false, "always try to optimize functions") |
| 397 DEFINE_bool(always_osr, false, "always try to OSR functions") |
| 402 DEFINE_bool(prepare_always_opt, false, "prepare for turning on always opt") | 398 DEFINE_bool(prepare_always_opt, false, "prepare for turning on always opt") |
| 403 DEFINE_bool(trace_deopt, false, "trace optimize function deoptimization") | 399 DEFINE_bool(trace_deopt, false, "trace optimize function deoptimization") |
| 404 DEFINE_bool(trace_stub_failures, false, | 400 DEFINE_bool(trace_stub_failures, false, |
| 405 "trace deoptimization of generated code stubs") | 401 "trace deoptimization of generated code stubs") |
| 406 | 402 |
| 407 // compiler.cc | 403 // compiler.cc |
| 408 DEFINE_int(min_preparse_length, 1024, | 404 DEFINE_int(min_preparse_length, 1024, |
| 409 "minimum length for automatic enable preparsing") | 405 "minimum length for automatic enable preparsing") |
| 410 DEFINE_bool(always_full_compiler, false, | 406 DEFINE_bool(always_full_compiler, false, |
| 411 "try to use the dedicated run-once backend for all code") | 407 "try to use the dedicated run-once backend for all code") |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 "garbage collect maps from which no objects can be reached") | 469 "garbage collect maps from which no objects can be reached") |
| 474 DEFINE_bool(weak_embedded_maps_in_optimized_code, false, | 470 DEFINE_bool(weak_embedded_maps_in_optimized_code, false, |
| 475 "make maps embedded in optimized code weak") | 471 "make maps embedded in optimized code weak") |
| 476 DEFINE_bool(flush_code, true, | 472 DEFINE_bool(flush_code, true, |
| 477 "flush code that we expect not to use again (during full gc)") | 473 "flush code that we expect not to use again (during full gc)") |
| 478 DEFINE_bool(flush_code_incrementally, true, | 474 DEFINE_bool(flush_code_incrementally, true, |
| 479 "flush code that we expect not to use again (incrementally)") | 475 "flush code that we expect not to use again (incrementally)") |
| 480 DEFINE_bool(trace_code_flushing, false, "trace code flushing progress") | 476 DEFINE_bool(trace_code_flushing, false, "trace code flushing progress") |
| 481 DEFINE_bool(age_code, true, | 477 DEFINE_bool(age_code, true, |
| 482 "track un-executed functions to age code and flush only " | 478 "track un-executed functions to age code and flush only " |
| 483 "old code") | 479 "old code (required for code flushing)") |
| 484 DEFINE_bool(incremental_marking, true, "use incremental marking") | 480 DEFINE_bool(incremental_marking, true, "use incremental marking") |
| 485 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps") | 481 DEFINE_bool(incremental_marking_steps, true, "do incremental marking steps") |
| 486 DEFINE_bool(trace_incremental_marking, false, | 482 DEFINE_bool(trace_incremental_marking, false, |
| 487 "trace progress of the incremental marking") | 483 "trace progress of the incremental marking") |
| 488 DEFINE_bool(track_gc_object_stats, false, | 484 DEFINE_bool(track_gc_object_stats, false, |
| 489 "track object counts and memory usage") | 485 "track object counts and memory usage") |
| 490 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping") | 486 DEFINE_bool(parallel_sweeping, true, "enable parallel sweeping") |
| 491 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping") | 487 DEFINE_bool(concurrent_sweeping, false, "enable concurrent sweeping") |
| 492 DEFINE_int(sweeper_threads, 0, | 488 DEFINE_int(sweeper_threads, 0, |
| 493 "number of parallel and concurrent sweeping threads") | 489 "number of parallel and concurrent sweeping threads") |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 #undef DEFINE_bool | 813 #undef DEFINE_bool |
| 818 #undef DEFINE_int | 814 #undef DEFINE_int |
| 819 #undef DEFINE_string | 815 #undef DEFINE_string |
| 820 #undef DEFINE_implication | 816 #undef DEFINE_implication |
| 821 | 817 |
| 822 #undef FLAG_MODE_DECLARE | 818 #undef FLAG_MODE_DECLARE |
| 823 #undef FLAG_MODE_DEFINE | 819 #undef FLAG_MODE_DEFINE |
| 824 #undef FLAG_MODE_DEFINE_DEFAULTS | 820 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 825 #undef FLAG_MODE_META | 821 #undef FLAG_MODE_META |
| 826 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 822 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| OLD | NEW |