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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 DEFINE_bool(concurrent_osr, false, | 340 DEFINE_bool(concurrent_osr, false, |
341 "concurrent on-stack replacement") | 341 "concurrent on-stack replacement") |
342 DEFINE_implication(concurrent_osr, concurrent_recompilation) | 342 DEFINE_implication(concurrent_osr, concurrent_recompilation) |
343 | 343 |
344 DEFINE_bool(omit_map_checks_for_leaf_maps, true, | 344 DEFINE_bool(omit_map_checks_for_leaf_maps, true, |
345 "do not emit check maps for constant values that have a leaf map, " | 345 "do not emit check maps for constant values that have a leaf map, " |
346 "deoptimize the optimized code if the layout of the maps changes.") | 346 "deoptimize the optimized code if the layout of the maps changes.") |
347 | 347 |
348 DEFINE_bool(new_string_add, true, "enable new string addition") | 348 DEFINE_bool(new_string_add, true, "enable new string addition") |
349 | 349 |
350 // Experimental profiler changes. | 350 // Profiler flags. |
351 DEFINE_bool(experimental_profiler, true, "enable all profiler experiments") | |
352 DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability") | |
353 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler") | 351 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler") |
354 DEFINE_bool(self_optimization, false, | |
355 "primitive functions trigger their own optimization") | |
356 DEFINE_bool(direct_self_opt, false, | |
357 "call recompile stub directly when self-optimizing") | |
358 DEFINE_bool(retry_self_opt, false, "re-try self-optimization if it failed") | |
359 DEFINE_bool(interrupt_at_exit, false, | |
360 "insert an interrupt check at function exit") | |
361 DEFINE_bool(weighted_back_edges, false, | |
362 "weight back edges by jump distance for interrupt triggering") | |
363 // 0x1700 fits in the immediate field of an ARM instruction. | 352 // 0x1700 fits in the immediate field of an ARM instruction. |
364 DEFINE_int(interrupt_budget, 0x1700, | 353 DEFINE_int(interrupt_budget, 0x1700, |
365 "execution budget before interrupt is triggered") | 354 "execution budget before interrupt is triggered") |
366 DEFINE_int(type_info_threshold, 25, | 355 DEFINE_int(type_info_threshold, 25, |
367 "percentage of ICs that must have type info to allow optimization") | 356 "percentage of ICs that must have type info to allow optimization") |
368 DEFINE_int(self_opt_count, 130, "call count before self-optimization") | 357 DEFINE_int(self_opt_count, 130, "call count before self-optimization") |
369 | 358 |
370 DEFINE_implication(experimental_profiler, watch_ic_patching) | |
371 DEFINE_implication(experimental_profiler, self_optimization) | |
372 // Not implying direct_self_opt here because it seems to be a bad idea. | |
373 DEFINE_implication(experimental_profiler, retry_self_opt) | |
374 DEFINE_implication(experimental_profiler, interrupt_at_exit) | |
375 DEFINE_implication(experimental_profiler, weighted_back_edges) | |
376 | |
377 DEFINE_bool(trace_opt_verbose, false, "extra verbose compilation tracing") | 359 DEFINE_bool(trace_opt_verbose, false, "extra verbose compilation tracing") |
378 DEFINE_implication(trace_opt_verbose, trace_opt) | 360 DEFINE_implication(trace_opt_verbose, trace_opt) |
379 | 361 |
380 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc | 362 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc |
381 DEFINE_bool(debug_code, false, | 363 DEFINE_bool(debug_code, false, |
382 "generate extra code (assertions) for debugging") | 364 "generate extra code (assertions) for debugging") |
383 DEFINE_bool(code_comments, false, "emit comments in code disassembly") | 365 DEFINE_bool(code_comments, false, "emit comments in code disassembly") |
384 DEFINE_bool(enable_sse2, true, | 366 DEFINE_bool(enable_sse2, true, |
385 "enable use of SSE2 instructions if available") | 367 "enable use of SSE2 instructions if available") |
386 DEFINE_bool(enable_sse3, true, | 368 DEFINE_bool(enable_sse3, true, |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 #undef DEFINE_ALIAS_float | 880 #undef DEFINE_ALIAS_float |
899 #undef DEFINE_ALIAS_args | 881 #undef DEFINE_ALIAS_args |
900 | 882 |
901 #undef FLAG_MODE_DECLARE | 883 #undef FLAG_MODE_DECLARE |
902 #undef FLAG_MODE_DEFINE | 884 #undef FLAG_MODE_DEFINE |
903 #undef FLAG_MODE_DEFINE_DEFAULTS | 885 #undef FLAG_MODE_DEFINE_DEFAULTS |
904 #undef FLAG_MODE_META | 886 #undef FLAG_MODE_META |
905 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 887 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
906 | 888 |
907 #undef COMMA | 889 #undef COMMA |
OLD | NEW |