| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) | 90 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) |
| 91 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) | 91 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) |
| 92 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) | 92 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) |
| 93 | 93 |
| 94 // | 94 // |
| 95 // Flags in all modes. | 95 // Flags in all modes. |
| 96 // | 96 // |
| 97 #define FLAG FLAG_FULL | 97 #define FLAG FLAG_FULL |
| 98 | 98 |
| 99 // Flags for Crankshaft. | 99 // Flags for Crankshaft. |
| 100 #ifdef V8_TARGET_ARCH_IA32 | |
| 101 DEFINE_bool(crankshaft, true, "use crankshaft") | 100 DEFINE_bool(crankshaft, true, "use crankshaft") |
| 102 #else | |
| 103 DEFINE_bool(crankshaft, false, "use crankshaft") | |
| 104 #endif | |
| 105 DEFINE_string(hydrogen_filter, "", "hydrogen use/trace filter") | 101 DEFINE_string(hydrogen_filter, "", "hydrogen use/trace filter") |
| 106 DEFINE_bool(use_hydrogen, true, "use generated hydrogen for compilation") | 102 DEFINE_bool(use_hydrogen, true, "use generated hydrogen for compilation") |
| 107 DEFINE_bool(build_lithium, true, "use lithium chunk builder") | 103 DEFINE_bool(build_lithium, true, "use lithium chunk builder") |
| 108 DEFINE_bool(alloc_lithium, true, "use lithium register allocator") | 104 DEFINE_bool(alloc_lithium, true, "use lithium register allocator") |
| 109 DEFINE_bool(use_lithium, true, "use lithium code generator") | 105 DEFINE_bool(use_lithium, true, "use lithium code generator") |
| 110 DEFINE_bool(use_range, true, "use hydrogen range analysis") | 106 DEFINE_bool(use_range, true, "use hydrogen range analysis") |
| 111 DEFINE_bool(eliminate_dead_phis, true, "eliminate dead phis") | 107 DEFINE_bool(eliminate_dead_phis, true, "eliminate dead phis") |
| 112 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") | 108 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") |
| 113 DEFINE_bool(use_peeling, false, "use loop peeling") | |
| 114 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") | 109 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") |
| 115 DEFINE_bool(use_inlining, true, "use function inlining") | 110 DEFINE_bool(use_inlining, true, "use function inlining") |
| 116 DEFINE_bool(limit_inlining, true, "limit code size growth from inlining") | 111 DEFINE_bool(limit_inlining, true, "limit code size growth from inlining") |
| 117 DEFINE_bool(eliminate_empty_blocks, true, "eliminate empty blocks") | 112 DEFINE_bool(eliminate_empty_blocks, true, "eliminate empty blocks") |
| 118 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") | 113 DEFINE_bool(loop_invariant_code_motion, true, "loop invariant code motion") |
| 119 DEFINE_bool(time_hydrogen, false, "timing for hydrogen") | 114 DEFINE_bool(hydrogen_stats, false, "print statistics for hydrogen") |
| 120 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") | 115 DEFINE_bool(trace_hydrogen, false, "trace generated hydrogen to file") |
| 121 DEFINE_bool(trace_inlining, false, "trace inlining decisions") | 116 DEFINE_bool(trace_inlining, false, "trace inlining decisions") |
| 122 DEFINE_bool(trace_alloc, false, "trace register allocator") | 117 DEFINE_bool(trace_alloc, false, "trace register allocator") |
| 118 DEFINE_bool(trace_all_uses, false, "trace all use positions") |
| 123 DEFINE_bool(trace_range, false, "trace range analysis") | 119 DEFINE_bool(trace_range, false, "trace range analysis") |
| 124 DEFINE_bool(trace_gvn, false, "trace global value numbering") | 120 DEFINE_bool(trace_gvn, false, "trace global value numbering") |
| 125 DEFINE_bool(trace_representation, false, "trace representation types") | 121 DEFINE_bool(trace_representation, false, "trace representation types") |
| 126 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") | 122 DEFINE_bool(stress_pointer_maps, false, "pointer map for every instruction") |
| 127 DEFINE_bool(stress_environments, false, "environment for every instruction") | 123 DEFINE_bool(stress_environments, false, "environment for every instruction") |
| 128 DEFINE_int(deopt_every_n_times, | 124 DEFINE_int(deopt_every_n_times, |
| 129 0, | 125 0, |
| 130 "deoptimize every n times a deopt point is passed") | 126 "deoptimize every n times a deopt point is passed") |
| 131 DEFINE_bool(process_arguments_object, true, "try to deal with arguments object") | 127 DEFINE_bool(process_arguments_object, true, "try to deal with arguments object") |
| 132 DEFINE_bool(trap_on_deopt, false, "put a break point before deoptimizing") | 128 DEFINE_bool(trap_on_deopt, false, "put a break point before deoptimizing") |
| 133 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases") | 129 DEFINE_bool(deoptimize_uncommon_cases, true, "deoptimize uncommon cases") |
| 134 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining") | 130 DEFINE_bool(polymorphic_inlining, true, "polymorphic inlining") |
| 135 DEFINE_bool(aggressive_loop_invariant_motion, true, | 131 DEFINE_bool(aggressive_loop_invariant_motion, true, |
| 136 "aggressive motion of instructions out of loops") | 132 "aggressive motion of instructions out of loops") |
| 137 #ifdef V8_TARGET_ARCH_X64 | |
| 138 DEFINE_bool(use_osr, false, "use on-stack replacement") | |
| 139 #else | |
| 140 DEFINE_bool(use_osr, true, "use on-stack replacement") | 133 DEFINE_bool(use_osr, true, "use on-stack replacement") |
| 141 #endif | 134 |
| 142 DEFINE_bool(trace_osr, false, "trace on-stack replacement") | 135 DEFINE_bool(trace_osr, false, "trace on-stack replacement") |
| 143 DEFINE_int(stress_runs, 0, "number of stress runs") | 136 DEFINE_int(stress_runs, 0, "number of stress runs") |
| 144 DEFINE_bool(optimize_closures, true, "optimize closures") | 137 DEFINE_bool(optimize_closures, true, "optimize closures") |
| 145 | 138 |
| 146 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc | 139 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc |
| 147 DEFINE_bool(debug_code, false, | 140 DEFINE_bool(debug_code, false, |
| 148 "generate extra code (assertions) for debugging") | 141 "generate extra code (assertions) for debugging") |
| 149 DEFINE_bool(code_comments, false, "emit comments in code disassembly") | 142 DEFINE_bool(code_comments, false, "emit comments in code disassembly") |
| 150 DEFINE_bool(emit_branch_hints, false, "emit branch hints") | 143 DEFINE_bool(emit_branch_hints, false, "emit branch hints") |
| 151 DEFINE_bool(peephole_optimization, true, | 144 DEFINE_bool(peephole_optimization, true, |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 DEFINE_bool(incremental_marking, true, "use incremental marking") | 258 DEFINE_bool(incremental_marking, true, "use incremental marking") |
| 266 DEFINE_bool(trace_incremental_marking, false, | 259 DEFINE_bool(trace_incremental_marking, false, |
| 267 "trace progress of the incremental marking") | 260 "trace progress of the incremental marking") |
| 268 | 261 |
| 269 // v8.cc | 262 // v8.cc |
| 270 DEFINE_bool(use_idle_notification, true, | 263 DEFINE_bool(use_idle_notification, true, |
| 271 "Use idle notification to reduce memory footprint.") | 264 "Use idle notification to reduce memory footprint.") |
| 272 // ic.cc | 265 // ic.cc |
| 273 DEFINE_bool(use_ic, true, "use inline caching") | 266 DEFINE_bool(use_ic, true, "use inline caching") |
| 274 | 267 |
| 268 #ifdef LIVE_OBJECT_LIST |
| 269 // liveobjectlist.cc |
| 270 DEFINE_string(lol_workdir, NULL, "path for lol temp files") |
| 271 DEFINE_bool(verify_lol, false, "perform debugging verification for lol") |
| 272 #endif |
| 273 |
| 275 // macro-assembler-ia32.cc | 274 // macro-assembler-ia32.cc |
| 276 DEFINE_bool(native_code_counters, false, | 275 DEFINE_bool(native_code_counters, false, |
| 277 "generate extra code for manipulating stats counters") | 276 "generate extra code for manipulating stats counters") |
| 278 | 277 |
| 279 // mark-compact.cc | 278 // mark-compact.cc |
| 280 DEFINE_bool(always_compact, false, "Perform compaction on every full GC") | 279 DEFINE_bool(always_compact, false, "Perform compaction on every full GC") |
| 281 DEFINE_bool(never_compact, false, | 280 DEFINE_bool(never_compact, false, |
| 282 "Never perform compaction on full GC - testing only") | 281 "Never perform compaction on full GC - testing only") |
| 283 DEFINE_bool(cleanup_ics_at_gc, true, | 282 DEFINE_bool(cleanup_ics_at_gc, true, |
| 284 "Flush inline caches prior to mark compact collection.") | 283 "Flush inline caches prior to mark compact collection.") |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 // Dev shell flags | 352 // Dev shell flags |
| 354 // | 353 // |
| 355 | 354 |
| 356 DEFINE_bool(help, false, "Print usage message, including flags, on console") | 355 DEFINE_bool(help, false, "Print usage message, including flags, on console") |
| 357 DEFINE_bool(dump_counters, false, "Dump counters on exit") | 356 DEFINE_bool(dump_counters, false, "Dump counters on exit") |
| 358 DEFINE_bool(debugger, false, "Enable JavaScript debugger") | 357 DEFINE_bool(debugger, false, "Enable JavaScript debugger") |
| 359 DEFINE_bool(remote_debugger, false, "Connect JavaScript debugger to the " | 358 DEFINE_bool(remote_debugger, false, "Connect JavaScript debugger to the " |
| 360 "debugger agent in another process") | 359 "debugger agent in another process") |
| 361 DEFINE_bool(debugger_agent, false, "Enable debugger agent") | 360 DEFINE_bool(debugger_agent, false, "Enable debugger agent") |
| 362 DEFINE_int(debugger_port, 5858, "Port to use for remote debugging") | 361 DEFINE_int(debugger_port, 5858, "Port to use for remote debugging") |
| 363 DEFINE_string(map_counters, NULL, "Map counters to a file") | 362 DEFINE_string(map_counters, "", "Map counters to a file") |
| 364 DEFINE_args(js_arguments, JSArguments(), | 363 DEFINE_args(js_arguments, JSArguments(), |
| 365 "Pass all remaining arguments to the script. Alias for \"--\".") | 364 "Pass all remaining arguments to the script. Alias for \"--\".") |
| 366 | 365 |
| 367 #if defined(WEBOS__) | 366 #if defined(WEBOS__) |
| 368 DEFINE_bool(debug_compile_events, false, "Enable debugger compile events") | 367 DEFINE_bool(debug_compile_events, false, "Enable debugger compile events") |
| 369 DEFINE_bool(debug_script_collected_events, false, | 368 DEFINE_bool(debug_script_collected_events, false, |
| 370 "Enable debugger script collected events") | 369 "Enable debugger script collected events") |
| 371 #else | 370 #else |
| 372 DEFINE_bool(debug_compile_events, true, "Enable debugger compile events") | 371 DEFINE_bool(debug_compile_events, true, "Enable debugger compile events") |
| 373 DEFINE_bool(debug_script_collected_events, true, | 372 DEFINE_bool(debug_script_collected_events, true, |
| 374 "Enable debugger script collected events") | 373 "Enable debugger script collected events") |
| 375 #endif | 374 #endif |
| 376 | 375 |
| 377 | 376 |
| 378 // | 377 // |
| 379 // GDB JIT integration flags. | 378 // GDB JIT integration flags. |
| 380 // | 379 // |
| 381 | 380 |
| 382 DEFINE_bool(gdbjit, false, "enable GDBJIT interface (disables compacting GC)") | 381 DEFINE_bool(gdbjit, false, "enable GDBJIT interface (disables compacting GC)") |
| 383 DEFINE_bool(gdbjit_full, false, "enable GDBJIT interface for all code objects") | 382 DEFINE_bool(gdbjit_full, false, "enable GDBJIT interface for all code objects") |
| 383 DEFINE_bool(gdbjit_dump, false, "dump elf objects with debug info to disk") |
| 384 | 384 |
| 385 // | 385 // |
| 386 // Debug only flags | 386 // Debug only flags |
| 387 // | 387 // |
| 388 #undef FLAG | 388 #undef FLAG |
| 389 #ifdef DEBUG | 389 #ifdef DEBUG |
| 390 #define FLAG FLAG_FULL | 390 #define FLAG FLAG_FULL |
| 391 #else | 391 #else |
| 392 #define FLAG FLAG_READONLY | 392 #define FLAG FLAG_READONLY |
| 393 #endif | 393 #endif |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 #undef FLAG | 542 #undef FLAG |
| 543 | 543 |
| 544 #undef DEFINE_bool | 544 #undef DEFINE_bool |
| 545 #undef DEFINE_int | 545 #undef DEFINE_int |
| 546 #undef DEFINE_string | 546 #undef DEFINE_string |
| 547 | 547 |
| 548 #undef FLAG_MODE_DECLARE | 548 #undef FLAG_MODE_DECLARE |
| 549 #undef FLAG_MODE_DEFINE | 549 #undef FLAG_MODE_DEFINE |
| 550 #undef FLAG_MODE_DEFINE_DEFAULTS | 550 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 551 #undef FLAG_MODE_META | 551 #undef FLAG_MODE_META |
| OLD | NEW |