| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 233 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
| 234 DEFINE_bool(string_slices, true, "use string slices") | 234 DEFINE_bool(string_slices, true, "use string slices") |
| 235 | 235 |
| 236 // Flags for Crankshaft. | 236 // Flags for Crankshaft. |
| 237 DEFINE_bool(crankshaft, true, "use crankshaft") | 237 DEFINE_bool(crankshaft, true, "use crankshaft") |
| 238 DEFINE_string(hydrogen_filter, "*", "optimization filter") | 238 DEFINE_string(hydrogen_filter, "*", "optimization filter") |
| 239 DEFINE_bool(use_range, true, "use hydrogen range analysis") | 239 DEFINE_bool(use_range, true, "use hydrogen range analysis") |
| 240 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") | 240 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") |
| 241 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") | 241 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") |
| 242 DEFINE_bool(use_inlining, true, "use function inlining") | 242 DEFINE_bool(use_inlining, true, "use function inlining") |
| 243 DEFINE_bool(use_escape_analysis, true, "use hydrogen escape analysis") | 243 DEFINE_bool(use_escape_analysis, false, "use hydrogen escape analysis") |
| 244 DEFINE_bool(use_allocation_folding, true, "use allocation folding") | 244 DEFINE_bool(use_allocation_folding, true, "use allocation folding") |
| 245 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels") | 245 DEFINE_int(max_inlining_levels, 5, "maximum number of inlining levels") |
| 246 DEFINE_int(max_inlined_source_size, 600, | 246 DEFINE_int(max_inlined_source_size, 600, |
| 247 "maximum source size in bytes considered for a single inlining") | 247 "maximum source size in bytes considered for a single inlining") |
| 248 DEFINE_int(max_inlined_nodes, 196, | 248 DEFINE_int(max_inlined_nodes, 196, |
| 249 "maximum number of AST nodes considered for a single inlining") | 249 "maximum number of AST nodes considered for a single inlining") |
| 250 DEFINE_int(max_inlined_nodes_cumulative, 400, | 250 DEFINE_int(max_inlined_nodes_cumulative, 400, |
| 251 "maximum cumulative number of AST nodes considered for inlining") | 251 "maximum cumulative number of AST nodes considered for inlining") |
| 252 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") | 252 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") |
| 253 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") | 253 DEFINE_bool(fast_math, true, "faster (but maybe less accurate) math functions") |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 "safe operations") | 324 "safe operations") |
| 325 | 325 |
| 326 DEFINE_bool(concurrent_recompilation, true, | 326 DEFINE_bool(concurrent_recompilation, true, |
| 327 "optimizing hot functions asynchronously on a separate thread") | 327 "optimizing hot functions asynchronously on a separate thread") |
| 328 DEFINE_bool(trace_concurrent_recompilation, false, | 328 DEFINE_bool(trace_concurrent_recompilation, false, |
| 329 "track concurrent recompilation") | 329 "track concurrent recompilation") |
| 330 DEFINE_int(concurrent_recompilation_queue_length, 8, | 330 DEFINE_int(concurrent_recompilation_queue_length, 8, |
| 331 "the length of the concurrent compilation queue") | 331 "the length of the concurrent compilation queue") |
| 332 DEFINE_int(concurrent_recompilation_delay, 0, | 332 DEFINE_int(concurrent_recompilation_delay, 0, |
| 333 "artificial compilation delay in ms") | 333 "artificial compilation delay in ms") |
| 334 DEFINE_bool(concurrent_osr, false, |
| 335 "concurrent on-stack replacement") |
| 334 | 336 |
| 335 DEFINE_bool(omit_map_checks_for_leaf_maps, true, | 337 DEFINE_bool(omit_map_checks_for_leaf_maps, true, |
| 336 "do not emit check maps for constant values that have a leaf map, " | 338 "do not emit check maps for constant values that have a leaf map, " |
| 337 "deoptimize the optimized code if the layout of the maps changes.") | 339 "deoptimize the optimized code if the layout of the maps changes.") |
| 338 | 340 |
| 339 // Experimental profiler changes. | 341 // Experimental profiler changes. |
| 340 DEFINE_bool(experimental_profiler, true, "enable all profiler experiments") | 342 DEFINE_bool(experimental_profiler, true, "enable all profiler experiments") |
| 341 DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability") | 343 DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability") |
| 342 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler") | 344 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler") |
| 343 DEFINE_bool(self_optimization, false, | 345 DEFINE_bool(self_optimization, false, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 "try to use the dedicated run-once backend for all code") | 450 "try to use the dedicated run-once backend for all code") |
| 449 DEFINE_int(max_opt_count, 10, | 451 DEFINE_int(max_opt_count, 10, |
| 450 "maximum number of optimization attempts before giving up.") | 452 "maximum number of optimization attempts before giving up.") |
| 451 | 453 |
| 452 // compilation-cache.cc | 454 // compilation-cache.cc |
| 453 DEFINE_bool(compilation_cache, true, "enable compilation cache") | 455 DEFINE_bool(compilation_cache, true, "enable compilation cache") |
| 454 | 456 |
| 455 DEFINE_bool(cache_prototype_transitions, true, "cache prototype transitions") | 457 DEFINE_bool(cache_prototype_transitions, true, "cache prototype transitions") |
| 456 | 458 |
| 457 // cpu-profiler.cc | 459 // cpu-profiler.cc |
| 458 #if defined(ANDROID) | 460 DEFINE_int(cpu_profiler_sampling_interval, 1000, |
| 459 // Phones and tablets have processors that are much slower than desktop | |
| 460 // and laptop computers for which current heuristics are tuned. | |
| 461 #define DEFAULT_INTERVAL 5000 | |
| 462 #else | |
| 463 #define DEFAULT_INTERVAL 1000 | |
| 464 #endif | |
| 465 DEFINE_int(cpu_profiler_sampling_interval, DEFAULT_INTERVAL, | |
| 466 "CPU profiler sampling interval in microseconds") | 461 "CPU profiler sampling interval in microseconds") |
| 467 #undef DEFAULT_INTERVAL | |
| 468 | 462 |
| 469 // debug.cc | 463 // debug.cc |
| 470 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") | 464 DEFINE_bool(trace_debug_json, false, "trace debugging JSON request/response") |
| 471 DEFINE_bool(trace_js_array_abuse, false, | 465 DEFINE_bool(trace_js_array_abuse, false, |
| 472 "trace out-of-bounds accesses to JS arrays") | 466 "trace out-of-bounds accesses to JS arrays") |
| 473 DEFINE_bool(trace_external_array_abuse, false, | 467 DEFINE_bool(trace_external_array_abuse, false, |
| 474 "trace out-of-bounds-accesses to external arrays") | 468 "trace out-of-bounds-accesses to external arrays") |
| 475 DEFINE_bool(trace_array_abuse, false, | 469 DEFINE_bool(trace_array_abuse, false, |
| 476 "trace out-of-bounds accesses to all arrays") | 470 "trace out-of-bounds accesses to all arrays") |
| 477 DEFINE_implication(trace_array_abuse, trace_js_array_abuse) | 471 DEFINE_implication(trace_array_abuse, trace_js_array_abuse) |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 #undef DEFINE_ALIAS_int | 864 #undef DEFINE_ALIAS_int |
| 871 #undef DEFINE_ALIAS_string | 865 #undef DEFINE_ALIAS_string |
| 872 #undef DEFINE_ALIAS_float | 866 #undef DEFINE_ALIAS_float |
| 873 #undef DEFINE_ALIAS_args | 867 #undef DEFINE_ALIAS_args |
| 874 | 868 |
| 875 #undef FLAG_MODE_DECLARE | 869 #undef FLAG_MODE_DECLARE |
| 876 #undef FLAG_MODE_DEFINE | 870 #undef FLAG_MODE_DEFINE |
| 877 #undef FLAG_MODE_DEFINE_DEFAULTS | 871 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 878 #undef FLAG_MODE_META | 872 #undef FLAG_MODE_META |
| 879 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 873 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| OLD | NEW |